Sha256: 5bfb58dce696f9e4a4931c5682192eb44c5c0ff7d34aaed82066803c80c4fb34

Contents?: true

Size: 699 Bytes

Versions: 29

Compression:

Stored size: 699 Bytes

Contents

const { nodeEnv } = require('../env')

// Compile standard ES features for JS in node_modules with Babel.
//   Regex details for exclude: https://regex101.com/r/SKPnnv/1
module.exports = {
  test: /\.(js|mjs)$/,
  include: /node_modules/,
  exclude: /(?:@?babel(?:\/|\\{1,2}|-).+)|regenerator-runtime|core-js|^webpack$|^webpack-assets-manifest$|^webpack-cli$|^webpack-sources$|^@rails\/webpacker$/,
  use: [
    {
      loader: 'babel-loader',
      options: {
        babelrc: false,
        presets: [['@babel/preset-env', { modules: false }]],
        cacheDirectory: true,
        cacheCompression: nodeEnv === 'production',
        compact: false,
        sourceMaps: false
      }
    }
  ]
}

Version data entries

29 entries across 29 versions & 7 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/package/rules/node_modules.js
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/package/rules/node_modules.js
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/package/rules/node_modules.js
jetpacker-0.7.0 package/rules/node_modules.js
webpacker-5.4.4 package/rules/node_modules.js
jetpacker-0.6.0 package/rules/node_modules.js
disco_app-0.16.1 test/dummy/node_modules/@rails/webpacker/package/rules/node_modules.js
disco_app-0.15.2 test/dummy/node_modules/@rails/webpacker/package/rules/node_modules.js
disco_app-0.18.4 test/dummy/node_modules/@rails/webpacker/package/rules/node_modules.js
disco_app-0.18.1 test/dummy/node_modules/@rails/webpacker/package/rules/node_modules.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@rails/webpacker/package/rules/node_modules.js
disco_app-0.14.0 test/dummy/node_modules/@rails/webpacker/package/rules/node_modules.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@rails/webpacker/package/rules/node_modules.js
webpacker-5.4.3 package/rules/node_modules.js
webpacker-5.4.2 package/rules/node_modules.js
webpacker-5.4.1 package/rules/node_modules.js
webpacker-5.4.0 package/rules/node_modules.js
webpacker-5.3.0 package/rules/node_modules.js
webpacker-5.2.2 package/rules/node_modules.js
tang-0.2.1 spec/tang_app/node_modules/@rails/webpacker/package/rules/node_modules.js