Upgrading style-loader 2 to 3
Breaking2.0.0 → 3.3.4Breaking2Platform1New7Changed3Fixed8
BreakingUpgrade verdict
2 breaking changes and a platform requirement change.
In plain terms
- You no longer set named exports in style-loader; it follows the setting from css-loader instead.
- The default style injection no longer works around old Internet Explorer limits; if you still support IE8-IE9, switch the injectType option.
- You need Node.js 12.13.0 or newer to use this version.
Must act 3 items need code or config changes
Node.js requirement changed in 3.0.0: >= 10.13.0 → >= 12.13.0.
Drops loader-utils, schema-utils.
Installs 0 packages in all (was 13).
What you must change
Breaking2
Removes the modules.namedExport option, since the modules.namedExport option from css-loader is now respected.
modules.namedExportDisables the default singleton style tag behavior of the styleTag injectType for IE8-IE9; use autoStyleTag or lazyAutoStyleTag to restore it.
injectTypestyleTagautoStyleTaglazyStyleTaglazyAutoStyleTagPlatform1
Raises the minimum supported Node.js version to 12.13.0.