File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,17 @@ which you may have installed to enable extra features:
4343 an example, temporarily delete your ` .eslintrc.js ` file and run Encore.
4444 The error will show you a Babel configuration file you can use.
4545
46+ * With ` configureDefinePlugin() ` , the ` options['process.env'] ` key format
47+ passed to the callback has changed (see #960 ). If you are using ` configureDefinePlugin() `
48+ to add more items to ` process.env ` , your code will need to change:
49+
50+ ``` diff
51+ Encore.configureDefinePlugin((options) => {
52+ - options['process.env']['SOME_VAR'] = JSON.stringify('the value');
53+ + options['process.env.SOME_VAR'] = JSON.stringify('the value');
54+ })
55+ ````
56+
4657# # [v1.8.2](https://github.com/symfony/webpack-encore/releases/tag/v1.8.2)
4758
4859*Mar 17th, 2022*
You can’t perform that action at this time.
0 commit comments