Sha256: 1594e2aee5646f58a53175c143cc3109948177b1e2f7d962c4b7f1b2b740e0fb
Contents?: true
Size: 859 Bytes
Versions: 1
Compression:
Stored size: 859 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_range_limit${ESM ? '.esm' : '.umd'}` const external = [] const globals = {} let includePathOptions = { include: {}, paths: ['app/javascript'], external: [], extensions: ['.js'] }; const rollupConfig = { input: path.resolve(__dirname, `app/javascript/blacklight_range_limit/index.js`), output: { file: path.resolve(__dirname, `app/assets/javascripts/blacklight_range_limit/${fileDest}.js`), format: ESM ? 'esm' : 'umd', globals, generatedCode: 'es2015' }, external, plugins: [includePaths(includePathOptions)] } if (!ESM) { rollupConfig.output.name = 'BlacklightRangeLimit' } module.exports = rollupConfig
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight_range_limit-8.5.0 | rollup.config.js |