Sha256: 48355e67d271f5790fb6579e6b7aea95a92e27b21b73c2a354fb8c2893f83e57

Contents?: true

Size: 645 Bytes

Versions: 1

Compression:

Stored size: 645 Bytes

Contents

import includePaths from 'rollup-plugin-includepaths';


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

const fileDest = `oembed${ESM ? '.esm' : ''}`

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

const rollupConfig = {
  input: 'app/javascript/oembed.js',
  output: {
    file: `app/assets/javascripts/blacklight_oembed/${fileDest}.js`,
    format: ESM ? 'es' : 'umd',
    generatedCode: { preset: 'es2015' },
    name: ESM ? undefined : 'BlacklightOembed'
  },
  plugins: [includePaths(includePathOptions)]
}

export default rollupConfig

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-oembed-1.4.0 rollup.config.js