Sha256: e837ce35a61b5dc58491f46be3aa319a9eb8fc5f9aa015443cc4d2b685ba203a

Contents?: true

Size: 809 Bytes

Versions: 12

Compression:

Stored size: 809 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${ESM ? '.esm' : ''}`
const external = []
const globals = {}

let includePathOptions = {
  include: {},
  paths: ['app/javascript'],
  external: [],
  extensions: ['.js']
};

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,
  plugins: [includePaths(includePathOptions)]
}

if (!ESM) {
  rollupConfig.output.name = 'Blacklight'
}

module.exports = rollupConfig

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
blacklight-8.4.0 rollup.config.js
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/rollup.config.js
blacklight-8.3.0 rollup.config.js
blacklight-8.2.2 rollup.config.js
blacklight-8.2.1 rollup.config.js
blacklight-8.2.0 rollup.config.js
blacklight-8.1.0 rollup.config.js
blacklight-8.0.1 rollup.config.js
blacklight-8.0.0 rollup.config.js
blacklight-8.0.0.beta8 rollup.config.js
blacklight-8.0.0.beta7 rollup.config.js
blacklight-8.0.0.beta6 rollup.config.js