You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #1150 fix(babel): move Babel dependencies to (optional) peerDependencies (Kocal)
This PR was squashed before being merged into the main branch.
Discussion
----------
fix(babel): move Babel dependencies to (optional) peerDependencies
Close#1149
This PR does the following things:
- BC: remove unecessary Babel plugins dependencies, which are already managed by ``@babel`/present-env`
- move ``@babel`/core` and ``@babel`/preset-env` as **required** peer dependencies.
- added a bunch of testing apps, to check how Encore installs/runs when:
- Babel is minimally present (just ``@babel`/core` and ``@babel`/preset-env` are installed)
- Babel is configured through **Encore***, with ``@babel`/preset-env` installed and a Babel plugin not managed by ``@babel`/preset-env` (e.g.: ``@babel`/plugin-proposal-partial-application`)
- Babel is configured through **babel.config.js**, with ``@babel`/preset-env` installed and a Babel plugin not managed by ``@babel`/preset-env` (e.g.: ``@babel`/plugin-proposal-partial-application`)
I will update the Symfony recipe after merging this PR.
Note: in the future, I would like to make Babel totally optional with Encore, because I would like to use ESBuild for building JS/TS files (with `esbuild-loader`) and minifying file.
Commits
-------
418042f fix(babel): move Babel dependencies to (optional) peerDependencies
0 commit comments