Skip to content

Commit 5722c0b

Browse files
committed
process launchdarkly imports - required since launchdarkly-js-client-sdk includes a ?. in their cjs bundle
1 parent a45873f commit 5722c0b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/kbn-optimizer/src/worker/webpack.config.ts

+8
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,14 @@ export function getWebpackConfig(
280280
plugins: ['@babel/plugin-transform-logical-assignment-operators'],
281281
},
282282
},
283+
{
284+
test: /node_modules[\/\\]launchdarkly[^\/\\]+[\/\\].*.js$/,
285+
loaders: 'babel-loader',
286+
options: {
287+
envName: worker.dist ? 'production' : 'development',
288+
presets: [BABEL_PRESET],
289+
},
290+
},
283291
{
284292
test: /\.(html|md|txt|tmpl)$/,
285293
use: {

0 commit comments

Comments
 (0)