Skip to content

Commit f1a1db6

Browse files
committed
Updating Changelog for symfony#960
1 parent e8c6d25 commit f1a1db6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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*

0 commit comments

Comments
 (0)