Sha256: dd42d37d96cebec03b7c6eb428da20bf4ac3ec31549f3b839bbcbc81100cdc07
Contents?: true
Size: 593 Bytes
Versions: 5
Compression:
Stored size: 593 Bytes
Contents
'use strict' 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 = {} 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 } if (!ESM) { rollupConfig.output.name = 'Blacklight' } module.exports = rollupConfig
Version data entries
5 entries across 5 versions & 1 rubygems