feat: add JS env config to workers (#31851)

This commit is contained in:
Zachary Hancock
2023-03-03 09:29:18 -05:00
committed by GitHub
parent 1ef66409c9
commit 89e308e45e

View File

@@ -41,6 +41,9 @@ var workerConfig = function() {
new BundleTracker({
path: process.env.STATIC_ROOT_LMS,
filename: 'webpack-worker-stats.json'
}),
new webpack.DefinePlugin({
'process.env.JS_ENV_EXTRA_CONFIG': JSON.parse(process.env.JS_ENV_EXTRA_CONFIG),
})
],
module: {