Sha256: 5f25fdc5cc6f360f899bd73a703cb09ebeb915fd7a084faef92604ea4cc53294

Contents?: true

Size: 693 Bytes

Versions: 20

Compression:

Stored size: 693 Bytes

Contents

const { join, resolve } = require('path')
const { cache_path: cachePath, source_path: sourcePath, resolved_paths: resolvedPaths } = require('../config')
const { nodeEnv } = require('../env')

// Process application Javascript code with Babel.
// Uses application .babelrc to apply any transformations
module.exports = {
  test: /\.(js|jsx|mjs)?(\.erb)?$/,
  include: [sourcePath, ...resolvedPaths].map(p => resolve(p)),
  exclude: /node_modules/,
  use: [
    {
      loader: 'babel-loader',
      options: {
        cacheDirectory: join(cachePath, 'babel-loader-node-modules'),
        cacheCompression: nodeEnv === 'production',
        compact: nodeEnv === 'production'
      }
    }
  ]
}

Version data entries

20 entries across 20 versions & 5 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/@rails/webpacker/package/rules/babel.js
disco_app-0.18.2 test/dummy/node_modules/@rails/webpacker/package/rules/babel.js
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/webpacker-4.0.7/package/rules/babel.js
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/webpacker-4.0.7/package/rules/babel.js
jester-data-8.0.0 node_modules/@rails/webpacker/package/rules/babel.js
ezii-os-5.2.1 node_modules/@rails/webpacker/package/rules/babel.js
ezii-os-2.0.1 node_modules/@rails/webpacker/package/rules/babel.js
ezii-os-1.1.0 node_modules/@rails/webpacker/package/rules/babel.js
ezii-os-1.0.0 node_modules/@rails/webpacker/package/rules/babel.js
ezii-os-0.0.0.1.0 node_modules/@rails/webpacker/package/rules/babel.js
ezii-os-0.0.0.0.1 node_modules/@rails/webpacker/package/rules/babel.js
webpacker-4.0.7 package/rules/babel.js
webpacker-4.0.6 package/rules/babel.js
webpacker-4.0.5 package/rules/babel.js
webpacker-4.0.4 package/rules/babel.js
webpacker-4.0.3 package/rules/babel.js
webpacker-4.0.2 package/rules/babel.js
webpacker-4.0.1 package/rules/babel.js
webpacker-4.0.0 package/rules/babel.js
webpacker-4.0.0.rc.8 package/rules/babel.js