diff --git a/.changeset/sweet-snakes-cheat.md b/.changeset/sweet-snakes-cheat.md new file mode 100644 index 000000000..4f87f1b9e --- /dev/null +++ b/.changeset/sweet-snakes-cheat.md @@ -0,0 +1,12 @@ +--- +'preact-cli': major +--- + +- Upgrades to Webpack v5 + - Any custom configuration you do in your `preact.config.js` may need to be altered to account for this. Plugins may need replacements or different option formats. + +- `--esm` flag has been removed + - Dual output is now enabled by default in production builds. + +- `.babelrc` no longer overwrites matching keys + - Instead, the config will be merged in to the default. The default still takes precedence when there are conflicts, so you will still need to use your `preact.config.js` if you want to edit or remove default plugins or presets. diff --git a/.eslintignore b/.eslintignore index 66e817fc8..4ec2f1666 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ **/node_modules **/tests/output +**/tests/subjects/*/preact.config.js **/*.d.ts diff --git a/README.md b/README.md index 91b5651c2..3e78f14e0 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ Note: If you don't specify enough data to the `npx preact-cli create` command, i Create a production build -You can disable `default: true` flags by prefixing them with `--no-