Sha256: 892ff701151d58855118e1b60ddee68557d91f8ae157c51ac23f3075787e4ff8

Contents?: true

Size: 599 Bytes

Versions: 2

Compression:

Stored size: 599 Bytes

Contents

const { resolve } = require("path")
const { realpathSync } = require("fs")
const {
  source_path: sourcePath,
  additional_paths: additionalPaths
} = require("../config")

const inclusions = [sourcePath, ...additionalPaths].map((p) => {
  try {
    return realpathSync(p)
  } catch (e) {
    return resolve(p)
  }
})

module.exports = {
  include: inclusions,
  exclude: [
    {
      // exclude all node_modules from running through babel-loader
      and: [resolve("node_modules")],
      // Do not exclude inclusions, as otherwise these won't be transpiled
      not: [...inclusions]
    }
  ]
}

Version data entries

2 entries across 2 versions & 1 rubygems

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