Sha256: eb7114265cd88d402b4a65dfb1eb52be2829ff4a49a3ca666b45f0f62a88407e

Contents?: true

Size: 834 Bytes

Versions: 5

Compression:

Stored size: 834 Bytes

Contents

import includePaths from 'rollup-plugin-includepaths';


const BUNDLE = process.env.BUNDLE === 'true'
const ESM = process.env.ESM === 'true'

const fileDest = `blacklight-gallery${ESM ? '.esm' : ''}`
const external = [
  'blacklight-frontend'
]
const globals = {
  'blacklight-frontend': 'Blacklight'
}

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

const rollupConfig = {
  input: 'app/javascript/blacklight-gallery/index.js',
  output: {
    file: `app/assets/javascripts/blacklight_gallery/${fileDest}.js`,
    format: ESM ? 'es' : 'umd',
    globals,
    generatedCode: { preset: 'es2015' },
    name: ESM ? undefined : 'BlacklightGallery'
  },
  external,
  plugins: [includePaths(includePathOptions)]
}

export default rollupConfig

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-gallery-4.8.4 rollup.config.js
blacklight-gallery-4.8.3 rollup.config.js
blacklight-gallery-4.8.2 rollup.config.js
blacklight-gallery-4.8.1 rollup.config.js
blacklight-gallery-4.8.0 rollup.config.js