Sha256: 0ef4ec51c0403722fc7b22a628fa6c21a5209d66a0e543ff7d38cb93069f185b

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 Bytes

Contents

const { resolve } = require('path')
const { realpathSync } = require('fs')
const { includePaths } = require('../config')

const inclusions = includePaths.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

1 entries across 1 versions & 1 rubygems

Version Path
shakapacker-7.3.0.beta.1 package/rules/jscommon.js