Skip to content

Commit

Permalink
process launchdarkly imports - required since launchdarkly-js-client-…
Browse files Browse the repository at this point in the history
…sdk includes a ?. in their cjs bundle
  • Loading branch information
delanni committed Oct 30, 2024
1 parent a45873f commit 5722c0b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/kbn-optimizer/src/worker/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@ export function getWebpackConfig(
plugins: ['@babel/plugin-transform-logical-assignment-operators'],
},
},
{
test: /node_modules[\/\\]launchdarkly[^\/\\]+[\/\\].*.js$/,
loaders: 'babel-loader',
options: {
envName: worker.dist ? 'production' : 'development',
presets: [BABEL_PRESET],
},
},
{
test: /\.(html|md|txt|tmpl)$/,
use: {
Expand Down

0 comments on commit 5722c0b

Please sign in to comment.