diff --git a/.changeset/embedded-javascript-parse-goal.md b/.changeset/embedded-javascript-parse-goal.md new file mode 100644 index 0000000..0d71a8e --- /dev/null +++ b/.changeset/embedded-javascript-parse-goal.md @@ -0,0 +1,5 @@ +--- +"minimizer-webpack-plugin": patch +--- + +read `as` on an embedded JavaScript body: the built-in minimizers take `module` as their own option and minify an `event-handler` body as the function it belongs to, so neither production is read as a classic script and no engine is handed the word diff --git a/README.md b/README.md index 4696f07..9da943f 100644 --- a/README.md +++ b/README.md @@ -1020,6 +1020,21 @@ stylesheet, so a minifier claiming `css` is handed one either way and `as` says which it is. Ignore it at your peril: parsing a declaration list as a stylesheet finds no rule and returns nothing. +A `