Sha256: e95d91d797dec617c168aff6fc7d726817008e7b06967151a4e414243021ca75

Contents?: true

Size: 710 Bytes

Versions: 5

Compression:

Stored size: 710 Bytes

Contents

import includePaths from 'rollup-plugin-includepaths';


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: 'app/javascript/blacklight/index.js',
  output: {
    file: `app/assets/javascripts/blacklight/${fileDest}.js`,
    format: ESM ? 'es' : 'umd',
    globals,
    generatedCode: { preset: 'es2015' },
    name: ESM ? undefined : 'Blacklight'
  },
  external,
  plugins: [includePaths(includePathOptions)]
}

export default rollupConfig

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-8.7.0 rollup.config.js
blacklight-8.6.1 rollup.config.js
blacklight-8.6.0 rollup.config.js
blacklight-8.5.1 rollup.config.js
blacklight-8.5.0 rollup.config.js