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

Version Path
blacklight-8.0.0.beta5 rollup.config.js
blacklight-8.0.0.beta4 rollup.config.js
blacklight-8.0.0.beta3 rollup.config.js
blacklight-8.0.0.beta2 rollup.config.js
blacklight-8.0.0.beta1 rollup.config.js