remove standalone webpack changes

This commit is contained in:
Dan Wilson 2023-09-11 22:51:03 +01:00
parent 98c5f1352d
commit 08ea7a0407
2 changed files with 3 additions and 9 deletions

View File

@ -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({

View File

@ -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