File tree Expand file tree Collapse file tree 4 files changed +35
-4
lines changed
pnpm-with-external-babel-config Expand file tree Collapse file tree 4 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ ## [ v4.0.0] ( https://github.com/symfony/webpack-encore/releases/tag/v4.0.0 )
4+
5+ This major release makes Encore compatible with [ Yarn Plug'n'Play] ( https://yarnpkg.com/features/pnp ) and [ pnpm] ( https://pnpm.io/ ) .
6+
7+ ### BC Breaks
8+
9+ * The following dependencies ** must be added** in your ` package.json ` : ` webpack webpack-cli @babel/core @babel/preset-env ` (#1142 and #1150 ):
10+ ``` shell
11+ npm install webpack webpack-cli @babel/core @babel/preset-env --save-dev
12+
13+ # or via yarn
14+ yarn add webpack webpack-cli @babel/core @babel/preset-env --dev
15+ ```
16+
17+ * The following dependencies ** must be removed** from your ` package.json ` and Babel configuration: ` @babel/plugin-syntax-dynamic-import @babel/plugin-proposal-class-properties ` ,
18+ since they are already included in ` @babel/preset-env ` (#1150 ):
19+ ``` shell
20+ npm remove @babel/plugin-syntax-dynamic-import @babel/plugin-proposal-class-properties
21+
22+ # or via yarn
23+ yarn remove @babel/plugin-syntax-dynamic-import @babel/plugin-proposal-class-properties
24+ ```
25+
26+ and remove it from your Encore configuration:
27+ ``` diff
28+ Encore.configureBabel((options) => {
29+ - config.plugins.push('@babel/plugin-proposal-class-properties');
30+ +
31+ })
32+ ```
33+
334## [ v3.1.0] ( https://github.com/symfony/webpack-encore/releases/tag/v3.0.0 )
435
536* August 24th, 2022*
1344This major release drops support for Node 12 (minimum is now Node 14) and
1445also bumps some dependencies up a new major version.
1546
16- ## BC Breaks
47+ ### BC Breaks
1748
1849* In #1122 support for Node 12 was dropped.
1950
Original file line number Diff line number Diff line change 11# Testing app: pnpm (with Babel)
22
3- This testing app is used to test how Encore installation and usage work when using the [ ** pnpm** package manager] ( https://pnpm.io/fr/ ) .
3+ This testing app is used to test how Encore installation and usage work when using the [ ** pnpm** package manager] ( https://pnpm.io/ ) .
44
55## Installation
66
Original file line number Diff line number Diff line change 11# Testing app: pnpm (with external Babel configuration file)
22
3- This testing app is used to test how Encore installation and usage work when using the [ ** pnpm** package manager] ( https://pnpm.io/fr/ ) .
3+ This testing app is used to test how Encore installation and usage work when using the [ ** pnpm** package manager] ( https://pnpm.io/ ) .
44
55## Installation
66
Original file line number Diff line number Diff line change 11# Testing app: pnpm
22
3- This testing app is used to test how Encore installation and usage work when using the [ ** pnpm** package manager] ( https://pnpm.io/fr/ ) .
3+ This testing app is used to test how Encore installation and usage work when using the [ ** pnpm** package manager] ( https://pnpm.io/ ) .
44
55## Installation
66
You can’t perform that action at this time.
0 commit comments