Sha256: 67371685c8c81a7981ef83471815c644cc4ed8b8eb72a19311e1fc2ccdd5998b

Contents?: true

Size: 827 Bytes

Versions: 17

Compression:

Stored size: 827 Bytes

Contents

const { join } = require('path')
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/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: join(cachePath, 'babel-loader-node-modules'),
        cacheCompression: nodeEnv === 'production',
        compact: false,
        sourceMaps: false
      }
    }
  ]
}

Version data entries

17 entries across 17 versions & 5 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@rails/webpacker/package/rules/node_modules.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/@rails/webpacker/package/rules/node_modules.js
webpacker-4.3.0 package/rules/node_modules.js
enju_library-0.3.8 spec/dummy/node_modules/@rails/webpacker/package/rules/node_modules.js
webpacker-5.1.1 package/rules/node_modules.js
webpacker-5.1.0 package/rules/node_modules.js
webpacker-5.0.1 package/rules/node_modules.js
webpacker-5.0.0 package/rules/node_modules.js
jetpacker-0.4.2 package/rules/node_modules.js
jetpacker-0.4.1 package/rules/node_modules.js
jetpacker-0.4.0 package/rules/node_modules.js
jetpacker-0.3.0 package/rules/node_modules.js
jetpacker-0.2.0 package/rules/node_modules.js
webpacker-4.2.2 package/rules/node_modules.js
webpacker-4.2.1 package/rules/node_modules.js
webpacker-4.2.0 package/rules/node_modules.js
webpacker-4.1.0 package/rules/node_modules.js