Sha256: 3d50025ce3194298c8b5b1df930a5f3b8f49a625101d481f99a8c06794d48dfe
Contents?: true
Size: 866 Bytes
Versions: 2
Compression:
Stored size: 866 Bytes
Contents
import includePaths from 'rollup-plugin-includepaths'; import commonjs from '@rollup/plugin-commonjs'; const BUNDLE = process.env.BUNDLE === 'true' const ESM = process.env.ESM === 'true' const fileDest = `openseadragon-rails${ESM ? '.esm' : ''}` const external = [ 'openseadragon', ] const globals = { openseadragon: 'OpenSeadragon', } let includePathOptions = { include: {}, paths: ['app/javascript'], external: [], extensions: ['.js', '.es6'] }; const rollupConfig = { input: 'app/javascript/openseadragon-rails/index.js', output: { file: `app/assets/javascripts/openseadragon-rails/${fileDest}.js`, format: ESM ? 'es' : 'umd', globals, generatedCode: { preset: 'es2015' }, name: ESM ? undefined : 'OpenseadragonRails' }, external, plugins: [includePaths(includePathOptions), commonjs()] } export default rollupConfig
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openseadragon-1.0.17 | rollup.config.js |
openseadragon-1.0.16 | rollup.config.js |