Sha256: 5fc4b5259384bf710dc30b4b5bda7bf64e4712bda2b6de218aadf597427e97bc

Contents?: true

Size: 597 Bytes

Versions: 14

Compression:

Stored size: 597 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

14 entries across 14 versions & 1 rubygems

Version Path
shakapacker-7.2.3 package/rules/jscommon.js
shakapacker-7.2.2 package/rules/jscommon.js
shakapacker-7.2.1 package/rules/jscommon.js
shakapacker-7.2.0 package/rules/jscommon.js
shakapacker-7.2.0.rc.0 package/rules/jscommon.js
shakapacker-7.1.0 package/rules/jscommon.js
shakapacker-7.0.3 package/rules/jscommon.js
shakapacker-7.0.2 package/rules/jscommon.js
shakapacker-7.0.1 package/rules/jscommon.js
shakapacker-7.0.0 package/rules/jscommon.js
shakapacker-7.0.0.rc.2 package/rules/jscommon.js
shakapacker-7.0.0.rc.1 package/rules/jscommon.js
shakapacker-7.0.0.rc.0 package/rules/jscommon.js
shakapacker-6.6.0 package/rules/jscommon.js