mirror of
https://github.com/harness/drone.git
synced 2025-05-20 19:09:59 +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 CONTEXT = process.cwd()
|
||||
const DEV = process.env.NODE_ENV === 'development'
|
||||
const STANDALONE = JSON.parse(process.env.STANDALONE ?? 'false')
|
||||
|
||||
module.exports = {
|
||||
target: 'web',
|
||||
@ -152,8 +151,7 @@ module.exports = {
|
||||
new ModuleFederationPlugin(moduleFederationConfig),
|
||||
new DefinePlugin({
|
||||
'process.env': '{}', // required for @blueprintjs/core
|
||||
__DEV__: DEV,
|
||||
__STANDALONE__: STANDALONE
|
||||
__DEV__: DEV
|
||||
}),
|
||||
new GenerateStringTypesPlugin(),
|
||||
new RetryChunkLoadPlugin({
|
||||
|
@ -1,12 +1,8 @@
|
||||
// temp file to hide open source pipelines and secrets - can be extended if needs be
|
||||
|
||||
const featureFlags = {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
OPEN_SOURCE_PIPELINES: __STANDALONE__ ?? false,
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
OPEN_SOURCE_SECRETS: __STANDALONE__ ?? false
|
||||
OPEN_SOURCE_PIPELINES: false,
|
||||
OPEN_SOURCE_SECRETS: false
|
||||
}
|
||||
|
||||
export const useFeatureFlag = (): Record<keyof typeof featureFlags, boolean> => featureFlags
|
||||
|
Loading…
Reference in New Issue
Block a user