Sha256: e837ce35a61b5dc58491f46be3aa319a9eb8fc5f9aa015443cc4d2b685ba203a
Contents?: true
Size: 809 Bytes
Versions: 12
Compression:
Stored size: 809 Bytes
Contents
'use strict' import includePaths from 'rollup-plugin-includepaths'; const path = require('path') const BUNDLE = process.env.BUNDLE === 'true' const ESM = process.env.ESM === 'true' const fileDest = `blacklight${ESM ? '.esm' : ''}` const external = [] const globals = {} let includePathOptions = { include: {}, paths: ['app/javascript'], external: [], extensions: ['.js'] }; const rollupConfig = { input: path.resolve(__dirname, `app/javascript/blacklight/index.js`), output: { file: path.resolve(__dirname, `app/assets/javascripts/blacklight/${fileDest}.js`), format: ESM ? 'esm' : 'umd', globals, generatedCode: 'es2015' }, external, plugins: [includePaths(includePathOptions)] } if (!ESM) { rollupConfig.output.name = 'Blacklight' } module.exports = rollupConfig
Version data entries
12 entries across 12 versions & 2 rubygems