Sha256: 9b08c15fd18d9e3b6d645d418ac8fa58b424eac6cc9391f200e35dbe75a7e6d0

Contents?: true

Size: 582 Bytes

Versions: 5

Compression:

Stored size: 582 Bytes

Contents

/* eslint global-require: 0 */
/* eslint import/no-dynamic-require: 0 */

const { resolve } = require('path')
const { existsSync } = require('fs')
const Environment = require('./environment')
const config = require('./config')
const loaders = require('./rules')

const createEnvironment = () => {
  const path = resolve(__dirname, 'environments', `${process.env.NODE_ENV}.js`)
  const constructor = existsSync(path) ? require(path) : Environment
  return new constructor()
}

const environment = createEnvironment()

module.exports = {
  environment, config, loaders, Environment
}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
webpacker-jets-3.2.101 package/index.js
webpacker-jets-3.2.100 package/index.js
webpacker-3.2.2 package/index.js
webpacker-3.2.1 package/index.js
webpacker-3.2.0 package/index.js