Skip to content

Commit 6cb399b

Browse files
jakeNiemiecgauravtiwari
authored andcommitted
fix: webpack should not be transpiled (#2111)
* fix: webpack should not be transpiled * 4.0.6
1 parent cc5a1b3 commit 6cb399b

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
**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**
22

3+
## [[4.0.6]](https://github.com/rails/webpacker/compare/v4.0.5...v4.0.6) - 2019-05-30
4+
5+
- Webpack should not be transpiled [#2111](https://github.com/rails/webpacker/pull/2111)
6+
37
## [[4.0.5]](https://github.com/rails/webpacker/compare/v4.0.4...v4.0.5) - 2019-05-30
48

59
- Don't let babel & core-js transpile each other [#2110](https://github.com/rails/webpacker/pull/2110)

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
webpacker (4.0.5)
4+
webpacker (4.0.6)
55
activesupport (>= 4.2)
66
rack-proxy (>= 0.6.1)
77
railties (>= 4.2)

lib/webpacker/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module Webpacker
22
# Change the version in package.json too, please!
3-
VERSION = "4.0.5".freeze
3+
VERSION = "4.0.6".freeze
44
end

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rails/webpacker",
3-
"version": "4.0.5",
3+
"version": "4.0.6",
44
"description": "Use webpack to manage app-like JavaScript modules in Rails",
55
"main": "package/index.js",
66
"files": [

package/rules/node_modules.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ const { cache_path: cachePath } = require('../config')
33
const { nodeEnv } = require('../env')
44

55
// Compile standard ES features for JS in node_modules with Babel.
6-
// Regex details for exclude: https://regex101.com/r/CglKdg/3/
6+
// Regex details for exclude: https://regex101.com/r/CglKdg/5/
77
module.exports = {
88
test: /\.(js|mjs)$/,
99
include: /node_modules/,
10-
exclude: /(?:@?babel(?:\/|\\{1,2}|-).+)|regenerator-runtime|core-js/,
10+
exclude: /(?:@?babel(?:\/|\\{1,2}|-).+)|regenerator-runtime|core-js|webpack/,
1111
use: [
1212
{
1313
loader: 'babel-loader',

0 commit comments

Comments
 (0)