webpacker 4.0.4 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/Gemfile.lock +1 -1
- data/lib/webpacker/version.rb +1 -1
- data/package.json +1 -1
- data/package/rules/node_modules.js +2 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4c1f44c9c15e9c73d4ebd6d8fbec5bda80690ff1306beb257623f5c42e4a79c
|
4
|
+
data.tar.gz: 6c7f4806a0dc1276ba4a6e06d13e080f17939f59fea3c9a703b150c0563a8edb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74fd6b7c5655a8c088b4a85dfe0acafc6c97fb9af6a522a95cb9ab4bb12cc9784adb8a468d280ef59fffd6bb1ee608d25371eb14114e8f7737e7fe851c4ebac3
|
7
|
+
data.tar.gz: d33efe7358aa9cf213f0b25ac5ebd18b6d0ecc6c5102d676fb35a0e3a611ca1dd39187b95b0cc9e0d4936947aaf82d7d303c86dd09f9b913670e97a8021a4d69
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/Gemfile.lock
CHANGED
data/lib/webpacker/version.rb
CHANGED
data/package.json
CHANGED
@@ -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:
|
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
|
+
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-
|
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.
|
271
|
-
changelog_uri: https://github.com/rails/webpacker/blob/v4.0.
|
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:
|