Skip to content

v4.0.0

Compare
Choose a tag to compare
@pnikolov pnikolov released this 23 Dec 10:36
· 516 commits to master since this release

Breaking Changes

Updated minimum Node version

  • Minimum required nodejs version is 10.13.0
  • Rebuild our node-sass by running
$ npm rebuild node-sass

File Loader, URL Loader updates

  • Rename the esModules option to esModule
  • Switch to ES modules by default (the option esModule is true by default)

SASS Loader updates

  • Move all sass (includePaths, importer, functions) options to the sassOptions option. The functions option can't be used as Function, you should use sassOption as Function to achieve this.
  • The data option was renamed to the prependData option
  • Default value of the sourceMap option depends on the devtool value (eval/false values don't enable source map generation)

Style Loader updates

  • The convertToAbsoluteUrls option was removed, you don't need this anymore
  • The attrs option was renamed to the attributes option
  • The transform option was removed without replacement
  • The hmr option was removed, webpack automatically inject HMR code when it is required (when the HotModuleReplacementPlugin plugin was used)
  • The sourceMap option was removed. The loader automatically inject source maps if the previous loader emit them
  • The ref/unref api methods were removed for useable loader, please use the use/unuse api methods
  • The style-loader/url loader was removed in favor injectType option (look the documentation about the injectType option)
  • The style-loader/useable loader was removed in favor injectType option (look the documentation about the injectType option)
  • The singleton option was removed (look documentation about the injectType option)
  • The insertAt option was removed in favor the insert option (look the documentation about the insert option and examples)
  • The insertInto options was removed in favor the insert option (look the documentation about the insert option and examples)

New dependencies

Packages major versions update

  • eslint from 5.x to 6.8.0 change log can be found on the official release notes
  • eslint-config-airbnb from 17.x to 18 change log can be found on the official release notes
  • file-loader from 4.x to 5.x change log can be found on the official release notes
  • sass-loader from 7.x to 8.x change log can be found on the official release notes
  • style-loader from 0.x to 1.x change log can be found on the official release notes
  • terser-webpack-plugin from 1.x to 2.x change log can be found on the official release notes
  • url-loader from 2.x to 3.x change log can be found on the official release notes

Packages minor versions update