Sha256: 8c95ea7fac51ab8966bba547c84c41a429d134ef7ab8ddf1a2484da488906659

Contents?: true

Size: 661 Bytes

Versions: 15

Compression:

Stored size: 661 Bytes

Contents

const { resolve } = require('path')
const { realpathSync } = require('fs')

const {
  source_path: sourcePath,
  additional_paths: additionalPaths
} = require('../config')
const { isProduction } = require('../env')

module.exports = {
  test: /\.(js|jsx|mjs|ts|tsx|coffee)?(\.erb)?$/,
  include: [sourcePath, ...additionalPaths].map((p) => {
    try {
      return realpathSync(p)
    } catch (e) {
      return resolve(p)
    }
  }),
  exclude: /node_modules/,
  use: [
    {
      loader: require.resolve('babel-loader'),
      options: {
        cacheDirectory: true,
        cacheCompression: isProduction,
        compact: isProduction
      }
    }
  ]
}

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
shakapacker-6.0.2 package/rules/babel.js
shakapacker-6.0.1 package/rules/babel.js
shakapacker-6.0.0 package/rules/babel.js
shakapacker-6.0.0.rc.14 package/rules/babel.js
shakapacker-6.0.0.rc.13 package/rules/babel.js
shakapacker-6.0.0.rc.12 package/rules/babel.js
shakapacker-6.0.0.rc.6 package/rules/babel.js
webpacker-6.0.0.rc.6 package/rules/babel.js
webpacker-6.0.0.rc.5 package/rules/babel.js
webpacker-6.0.0.rc.4 package/rules/babel.js
webpacker-6.0.0.rc.3 package/rules/babel.js
webpacker-6.0.0.rc.2 package/rules/babel.js
webpacker-6.0.0.rc.1 package/rules/babel.js
webpacker-6.0.0.beta.7 package/rules/babel.js
webpacker-6.0.0.beta.6 package/rules/babel.js