Skip to content

Commit

Permalink
fix: webpack should not be transpiled (#2111)
Browse files Browse the repository at this point in the history
* fix: webpack should not be transpiled

* 4.0.6
  • Loading branch information
jakeNiemiec authored and gauravtiwari committed May 31, 2019
1 parent cc5a1b3 commit 6cb399b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
**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**

## [[4.0.6]](https://github.com/rails/webpacker/compare/v4.0.5...v4.0.6) - 2019-05-30

- Webpack should not be transpiled [#2111](https://github.com/rails/webpacker/pull/2111)

## [[4.0.5]](https://github.com/rails/webpacker/compare/v4.0.4...v4.0.5) - 2019-05-30

- Don't let babel & core-js transpile each other [#2110](https://github.com/rails/webpacker/pull/2110)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
webpacker (4.0.5)
webpacker (4.0.6)
activesupport (>= 4.2)
rack-proxy (>= 0.6.1)
railties (>= 4.2)
Expand Down
2 changes: 1 addition & 1 deletion lib/webpacker/version.rb
@@ -1,4 +1,4 @@
module Webpacker
# Change the version in package.json too, please!
VERSION = "4.0.5".freeze
VERSION = "4.0.6".freeze
end
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@rails/webpacker",
"version": "4.0.5",
"version": "4.0.6",
"description": "Use webpack to manage app-like JavaScript modules in Rails",
"main": "package/index.js",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions package/rules/node_modules.js
Expand Up @@ -3,11 +3,11 @@ const { cache_path: cachePath } = require('../config')
const { nodeEnv } = require('../env')

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

0 comments on commit 6cb399b

Please sign in to comment.