From 8646374f582055c5bd79927c0031d20c5f2584bf Mon Sep 17 00:00:00 2001 From: Ryan Christian <33403762+rschristian@users.noreply.github.com> Date: Thu, 26 Jan 2023 02:22:02 -0600 Subject: [PATCH] refactor: Remove Critters (perhaps temporarily) (#1778) * refactor: Remove Critters (perhaps temporarily) * docs: Adding changeset --- .changeset/few-panthers-admire.md | 9 +++ README.md | 3 +- packages/cli/package.json | 1 - packages/cli/src/index.js | 4 -- .../src/lib/webpack/webpack-client-config.js | 12 ---- packages/cli/tests/build.test.js | 22 ------- packages/cli/tests/images/build.js | 30 +++------- yarn.lock | 59 +------------------ 8 files changed, 22 insertions(+), 118 deletions(-) create mode 100644 .changeset/few-panthers-admire.md diff --git a/.changeset/few-panthers-admire.md b/.changeset/few-panthers-admire.md new file mode 100644 index 000000000..c3b75ad7d --- /dev/null +++ b/.changeset/few-panthers-admire.md @@ -0,0 +1,9 @@ +--- +'preact-cli': major +--- + +Removes Critters which facilitates automatic CSS inlining in prod. + +Unfortunately Critters has not been updated for Webpack v5, resulting in a precarious dependency situation that causes issues for NPM users. As such, Critters will be removed for the time being. + +It may be updated or we may switch to a fork, but for now, it's causing issues and will require some work to correct. diff --git a/README.md b/README.md index 35ce9d9a1..b8340b200 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ $ [npm init / yarn create] preact-cli Create a production build -You can disable `default: true` flags by prefixing them with `--no-