Skip to content

Webpack 4, Babel 7

Compare
Choose a tag to compare
@onigoetz onigoetz released this 03 May 15:04
· 2862 commits to master since this release

Highlights

  • Webpack 4 migration from Webpack 3 #9
  • Use Babel 7 instead of Babel 6
  • Changed the list of supported browsers

Changes

babel-preset-swissquote

  • Use babel 7
  • Added a deduplicateHelpers option to allow helpers function to be declared only once. crafty-preset-webpack uses that option now.
  • Added a useESModules option to use ES imports for helper functions.
  • Remove prop types in production automatically

crafty-preset-postcss

  • Fix a bug when compiling styles with gulp, timestamp wasn't updated on created files, which broke reloading in browsers. Thanks @mariepw for the fix #13 #14
  • Replace extract-text-webpack-plugin was replaced with mini-css-extract-plugin for Webpack 4, features and options stay the same.

crafty

  • Changed default browsers to "> 0.25%, Firefox ESR, Edge >= 13, Safari >= 7.1, iOS >= 7.1, Chrome >= 32, Firefox >= 24, Opera >= 24, IE >= 9" This now excludes older browsers like IE8 and largely unused browsers.
  • Use browserslist's standard way to read browser list, fallback to crafty's default if nothing else is found.

eslint-plugin-swissquote

  • Added eslint-plugin-sonarjs to check on some more advanced rules for your JavaScript code. #12
  • Enabled sonarjs's recommended rules in our recommended preset.

stylelint-config-swissquote

  • Added stylelint-scss to plugins. #10
  • Replaced at-rule-no-unknown with scss/at-rule-no-unknown

Documentation

  • Fix typos in documentation, thanks @Elendev for contributions.

Internal

  • added npm clean to run lerna clean
  • added a postinstall script to run lerna bootstrap right after npm install

Version updates

  • [babel-preset-swissquote, crafty-preset-babel] Update @babel/core to 7.0.0-beta.46
  • [babel-preset-swissquote] Replace babel-plugin-syntax-dynamic-import@6.18.0 with @babel/plugin-syntax-dynamic-import@7.0.0-beta.46
  • [babel-preset-swissquote] Replace babel-plugin-transform-class-properties@6.24.1 with @babel/plugin-proposal-class-properties@7.0.0-beta.46
  • [babel-preset-swissquote] Replace babel-plugin-transform-object-rest-spread@6.26.0 with @babel/plugin-proposal-object-rest-spread@7.0.0-beta.46
  • [babel-preset-swissquote] Replace babel-plugin-transform-react-constant-elements@6.23.0 with @babel/plugin-transform-react-constant-elements@7.0.0-beta.46
  • [babel-preset-swissquote] Replace babel-plugin-transform-regenerator@6.26.0 with @babel/plugin-transform-regenerator@7.0.0-beta.46
  • [babel-preset-swissquote] Replace babel-plugin-transform-runtime@6.23.0 with @babel/plugin-transform-runtime@7.0.0-beta.46
  • [babel-preset-swissquote] Replace babel-preset-env@1.6.1 with @babel/preset-env@7.0.0-beta.46
  • [babel-preset-swissquote, crafty-preset-babel] Replace babel-runtime@^6.23.0 with @babel/preset-env@7.0.0-beta.46
  • [babel-preset-swissquote] Replace babel-plugin-dynamic-import-node@1.2.0 with babel-plugin-transform-dynamic-import@2.0.0
  • [babel-preset-swissquote] Replace babel-plugin-transform-react-jsx@6.24.1, babel-plugin-transform-react-jsx-self@6.22.0, babel-plugin-transform-react-jsx-source@6.22.0, babel-preset-react@6.24.1 with @babel/preset-react@7.0.0-beta.46
  • [crafty-preset-babel] Update babel-loader from 7.1.4 to 8.0.0-beta.2
  • [crafty-preset-babel] Update babel-plugin-istanbul from 4.1.5 to 4.1.6
  • [crafty-preset-babel] Update babel-preset-jest from 22.4.1 to 22.4.3
  • [crafty-preset-babel] Update gulp-babel from 7.0.1 to 8.0.0-beta.2
  • [crafty-preset-babel] Update rollup-plugin-babel from 3.0.3 to 4.0.0-beta.2
  • [crafty-preset-polyfills] Update core-js from 2.5.4 to 2.5.5
  • [crafty-preset-postcss, postcss-swissquote-preset] Update postcss from 6.0.21 to 6.0.22
  • [crafty-preset-postcss] Update postcss-loader from 2.1.3 to 2.1.4
  • [crafty-preset-postcss] Update postcss-scss from 1.0.4 to 1.0.5
  • [crafty-preset-postcss] Update style-loader from 0.20.3 to 0.21.0
  • [crafty-preset-postcss] Update stylelint from 9.1.3 to 9.2.0
  • [crafty-preset-postcss] Replace extract-text-webpack-plugin@3.0.2 with mini-css-extract-plugin@^0.4.0
  • [crafty-preset-react] Update react-test-renderer from 16.2.0 to 16.3.2
  • [crafty-preset-typescript] Update rollup-plugin-typescript2 from 0.12.0 to 0.13.0
  • [crafty-preset-typescript] Update ts-loader from 3.5.0 to 4.2.0
  • [crafty-preset-typescript] Update tslint-loader from 3.5.3 to 3.6.0
  • [crafty-preset-typescript] Update typescript from 2.8.1 to 2.8.3
  • [crafty-runner-rollup] Update rollup from 0.57.1 to 0.58.2
  • [crafty-runner-rollup] Update rollup-plugin-commonjs from 9.1.0 to 9.1.3
  • [crafty-runner-webpack, crafty-preset-postcss] Update webpack from 3.10.0 to 4.6.0
  • [crafty-runner-webpack] Added uglifyjs-webpack-plugin from ^1.2.5
  • [crafty-runner-webpack] Update webpack-chain from 4.5.0 to 4.6.0
  • [crafty-runner-webpack] Update webpack-dev-server from 2.11.1 to 3.1.4
  • [crafty-runner-webpack] Update webpack-stylish from 0.1.7 to 0.1.8
  • [crafty] Update enhanced-resolve from 3.4.1 to 4.0.0
  • [crafty] Update meow from 4.0.0 to 5.0.0
  • [crafty, postcss-swissquote-preset] Update browserslist from 3.2.3 to 3.2.6
  • [eslint-plugin-swissquote] Update babel-eslint from 7.2.3 to 8.2.3
  • [eslint-plugin-swissquote] Update eslint-plugin-import from 2.9.0 to 2.11.0
  • [eslint-plugin-swissquote] Added eslint-plugin-sonarjs version ^0.1.0
  • [postcss-swissquote-preset] Update autoprefixer from 8.2.0 to 8.4.1
  • [postcss-swissquote-preset] Update postcss-dir-pseudo-class from ^2.1.0 to 3.0.0
  • [postcss-swissquote-preset] Update postcss-url from 7.3.1 to 7.3.2