|
2 | 2 |
|
3 | 3 | **Please note that Webpacker 4.1.0 has an installer bug. Please use 4.2.0 or above**
|
4 | 4 |
|
| 5 | +## [[5.2.0]](https://github.com/rails/webpacker/compare/v5.1.1...5.2.0) - 2020-08-16 |
| 6 | + |
| 7 | +- Bump dependencies and fixes. See [diff](https://github.com/rails/webpacker/compare/v5.1.1...5-x-stable) for changes. |
| 8 | + |
5 | 9 | ## [[5.1.1]](https://github.com/rails/webpacker/compare/v5.1.0...v5.1.1) - 2020-04-20
|
6 | 10 |
|
7 | 11 | - Update [TypeScript documentation](https://github.com/rails/webpacker/blob/master/docs/typescript.md) and installer to use babel-loader for typescript.[(#2541](https://github.com/rails/webpacker/pull/2541)
|
8 | 12 |
|
9 | 13 | ## [[5.1.0]](https://github.com/rails/webpacker/compare/v5.0.1...v5.1.0) - 2020-04-19
|
10 | 14 |
|
11 | 15 | - Remove yarn integrity check [#2518](https://github.com/rails/webpacker/pull/2518)
|
12 |
| -- Switch from ts-loader to babel-loader [#2449](https://github.com/rails/webpacker/pull/2449) |
| 16 | +- Switch from ts-loader to babel-loader [#2449](https://github.com/rails/webpacker/pull/2449) |
13 | 17 | Please see the [TypeScript documentation](https://github.com/rails/webpacker/blob/master/docs/typescript.md) to upgrade existing projects to use typescript with 5.1
|
14 | 18 | - Resolve multi-word snakecase WEBPACKER_DEV_SERVER env values [#2528](https://github.com/rails/webpacker/pull/2528)
|
15 | 19 |
|
@@ -325,7 +329,7 @@ const { environment } = require('@rails/webpacker')
|
325 | 329 | // Enable with default config
|
326 | 330 | environment.splitChunks()
|
327 | 331 | // Configure via a callback
|
328 |
| -environment.splitChunks(config => |
| 332 | +environment.splitChunks((config) => |
329 | 333 | Object.assign({}, config, { optimization: { splitChunks: false } })
|
330 | 334 | )
|
331 | 335 | ```
|
@@ -649,7 +653,9 @@ environment.resolvedModules.append('vendor', 'vendor')
|
649 | 653 | ```js
|
650 | 654 | // Enable css modules with sass loader
|
651 | 655 | const sassLoader = environment.loaders.get('sass')
|
652 |
| -const cssLoader = sassLoader.use.find(loader => loader.loader === 'css-loader') |
| 656 | +const cssLoader = sassLoader.use.find( |
| 657 | + (loader) => loader.loader === 'css-loader' |
| 658 | +) |
653 | 659 |
|
654 | 660 | cssLoader.options = Object.assign({}, cssLoader.options, {
|
655 | 661 | modules: true,
|
|
0 commit comments