Sha256: 69b1d470a52e6cdcf1bd87f5d85d2bbc6ccdc6c09f3262cef1263c084a00951c
Contents?: true
Size: 653 Bytes
Versions: 87
Compression:
Stored size: 653 Bytes
Contents
/* eslint global-require: 0 */ /* eslint import/no-dynamic-require: 0 */ const { resolve } = require('path') const { existsSync } = require('fs') const Environment = require('./environments/base') const loaders = require('./rules') const config = require('./config') const devServer = require('./dev_server') const { nodeEnv } = require('./env') const createEnvironment = () => { const path = resolve(__dirname, 'environments', `${nodeEnv}.js`) const constructor = existsSync(path) ? require(path) : Environment return new constructor() } module.exports = { config, devServer, environment: createEnvironment(), Environment, loaders }
Version data entries
87 entries across 86 versions & 12 rubygems