Sha256: 86d2bbace607f6deaf42068e216affb29f7c99d38e1489152ea6d0cd5dde9604

Contents?: true

Size: 530 Bytes

Versions: 2

Compression:

Stored size: 530 Bytes

Contents

const { loaderMatches } = require("../utils/helpers")
const { webpack_loader: webpackLoader } = require("../config")
const { isProduction } = require("../env")
const jscommon = require("./jscommon")

module.exports = loaderMatches(webpackLoader, "babel", () => ({
  test: /\.(js|jsx|mjs|ts|tsx|coffee)?(\.erb)?$/,
  ...jscommon,
  use: [
    {
      loader: require.resolve("babel-loader"),
      options: {
        cacheDirectory: true,
        cacheCompression: isProduction,
        compact: isProduction
      }
    }
  ]
}))

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shakapacker-8.0.2 package/rules/babel.js
shakapacker-8.0.1 package/rules/babel.js