webpacker 4.0.4 → 4.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4771ef2e28d8bfdc206e2fa232839d55d7dd870e98acd13a8443908fa5c7af4
4
- data.tar.gz: 0272774d9b1488c342777349fa05afff078a0d7efaa21e13f47ced15ca67a167
3
+ metadata.gz: d4c1f44c9c15e9c73d4ebd6d8fbec5bda80690ff1306beb257623f5c42e4a79c
4
+ data.tar.gz: 6c7f4806a0dc1276ba4a6e06d13e080f17939f59fea3c9a703b150c0563a8edb
5
5
  SHA512:
6
- metadata.gz: 660477c21dafe7f124016f675a186ecb66f5607fb3e7ebf52006471028d3114e6b77c0f7b341e6dd3b0e530ade24c031a4583e519f6c741ba87850d7e9bf5ec5
7
- data.tar.gz: 323e4d61f2de06cd99360da2752c4097b8f1a9f2b197189fa3d8961cd163d73a049108e050c842d22a5a1b58d371819fe0d594b61e6813c0c722cf2d9012c15d
6
+ metadata.gz: 74fd6b7c5655a8c088b4a85dfe0acafc6c97fb9af6a522a95cb9ab4bb12cc9784adb8a468d280ef59fffd6bb1ee608d25371eb14114e8f7737e7fe851c4ebac3
7
+ data.tar.gz: d33efe7358aa9cf213f0b25ac5ebd18b6d0ecc6c5102d676fb35a0e3a611ca1dd39187b95b0cc9e0d4936947aaf82d7d303c86dd09f9b913670e97a8021a4d69
@@ -1,5 +1,9 @@
1
1
  **Please note that Webpacker 3.1.0 and 3.1.1 have some serious bugs so please consider using either 3.0.2 or 3.2.0**
2
2
 
3
+ ## [[4.0.5]](https://github.com/rails/webpacker/compare/v4.0.4...v4.0.5) - 2019-05-30
4
+
5
+ - Don't let babel & core-js transpile each other [#2110](https://github.com/rails/webpacker/pull/2110)
6
+
3
7
  ## [[4.0.4]](https://github.com/rails/webpacker/compare/v4.0.3...v4.0.4) - 2019-05-28
4
8
 
5
9
  - Remove bundler version constraint
@@ -8,6 +12,26 @@
8
12
 
9
13
  Please see the diff
10
14
 
15
+ ### Breaking changes
16
+
17
+ - [`@babel/polyfill`](https://babeljs.io/docs/en/next/babel-polyfill.html) [doesn't make it possible to provide a smooth migration path from `core-js@2` to `core-js@3`](https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md#babelpolyfill): for this reason, it was decided to deprecate `@babel/polyfill` in favor of separate inclusion of required parts of `core-js` and `regenerator-runtime`. [#2031](https://github.com/rails/webpacker/pull/2031)
18
+
19
+ In each of your `/packs/*.js` files, change this:
20
+ ```js
21
+ import "@babel/polyfill";
22
+ ```
23
+ to this:
24
+ ```js
25
+ import "core-js/stable";
26
+ import "regenerator-runtime/runtime";
27
+ ```
28
+
29
+ Don't forget install those dependencies directly!
30
+
31
+ ```sh
32
+ yarn add --save core-js regenerator-runtime
33
+ ```
34
+
11
35
  ## [4.0.2] - 2019-03-06
12
36
 
13
37
  - Bump the version on npm
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webpacker (4.0.4)
4
+ webpacker (4.0.5)
5
5
  activesupport (>= 4.2)
6
6
  rack-proxy (>= 0.6.1)
7
7
  railties (>= 4.2)
@@ -1,4 +1,4 @@
1
1
  module Webpacker
2
2
  # Change the version in package.json too, please!
3
- VERSION = "4.0.4".freeze
3
+ VERSION = "4.0.5".freeze
4
4
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rails/webpacker",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "Use webpack to manage app-like JavaScript modules in Rails",
5
5
  "main": "package/index.js",
6
6
  "files": [
@@ -3,10 +3,11 @@ const { cache_path: cachePath } = require('../config')
3
3
  const { nodeEnv } = require('../env')
4
4
 
5
5
  // Compile standard ES features for JS in node_modules with Babel.
6
+ // Regex details for exclude: https://regex101.com/r/CglKdg/3/
6
7
  module.exports = {
7
8
  test: /\.(js|mjs)$/,
8
9
  include: /node_modules/,
9
- exclude: /@babel(?:\/|\\{1,2})runtime|core-js/,
10
+ exclude: /(?:@?babel(?:\/|\\{1,2}|-).+)|regenerator-runtime|core-js/,
10
11
  use: [
11
12
  {
12
13
  loader: 'babel-loader',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webpacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.4
4
+ version: 4.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-05-28 00:00:00.000000000 Z
12
+ date: 2019-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -267,8 +267,8 @@ homepage: https://github.com/rails/webpacker
267
267
  licenses:
268
268
  - MIT
269
269
  metadata:
270
- source_code_uri: https://github.com/rails/webpacker/tree/v4.0.4
271
- changelog_uri: https://github.com/rails/webpacker/blob/v4.0.4/CHANGELOG.md
270
+ source_code_uri: https://github.com/rails/webpacker/tree/v4.0.5
271
+ changelog_uri: https://github.com/rails/webpacker/blob/v4.0.5/CHANGELOG.md
272
272
  post_install_message:
273
273
  rdoc_options: []
274
274
  require_paths: