mirror of
https://github.com/harness/drone.git
synced 2025-05-21 03:20:15 +08:00
remove standalone webpack changes
This commit is contained in:
parent
98c5f1352d
commit
08ea7a0407
@ -13,7 +13,6 @@ const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
|
|||||||
const moduleFederationConfig = require('./moduleFederation.config')
|
const moduleFederationConfig = require('./moduleFederation.config')
|
||||||
const CONTEXT = process.cwd()
|
const CONTEXT = process.cwd()
|
||||||
const DEV = process.env.NODE_ENV === 'development'
|
const DEV = process.env.NODE_ENV === 'development'
|
||||||
const STANDALONE = JSON.parse(process.env.STANDALONE ?? 'false')
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
target: 'web',
|
target: 'web',
|
||||||
@ -152,8 +151,7 @@ module.exports = {
|
|||||||
new ModuleFederationPlugin(moduleFederationConfig),
|
new ModuleFederationPlugin(moduleFederationConfig),
|
||||||
new DefinePlugin({
|
new DefinePlugin({
|
||||||
'process.env': '{}', // required for @blueprintjs/core
|
'process.env': '{}', // required for @blueprintjs/core
|
||||||
__DEV__: DEV,
|
__DEV__: DEV
|
||||||
__STANDALONE__: STANDALONE
|
|
||||||
}),
|
}),
|
||||||
new GenerateStringTypesPlugin(),
|
new GenerateStringTypesPlugin(),
|
||||||
new RetryChunkLoadPlugin({
|
new RetryChunkLoadPlugin({
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
// temp file to hide open source pipelines and secrets - can be extended if needs be
|
// temp file to hide open source pipelines and secrets - can be extended if needs be
|
||||||
|
|
||||||
const featureFlags = {
|
const featureFlags = {
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
OPEN_SOURCE_PIPELINES: false,
|
||||||
// @ts-ignore
|
OPEN_SOURCE_SECRETS: false
|
||||||
OPEN_SOURCE_PIPELINES: __STANDALONE__ ?? false,
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
OPEN_SOURCE_SECRETS: __STANDALONE__ ?? false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useFeatureFlag = (): Record<keyof typeof featureFlags, boolean> => featureFlags
|
export const useFeatureFlag = (): Record<keyof typeof featureFlags, boolean> => featureFlags
|
||||||
|
Loading…
Reference in New Issue
Block a user