Skip to content

Commit

Permalink
re-fix rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
902seanryan committed Jul 12, 2023
1 parent d90fa20 commit 62b37db
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 42 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

79 changes: 39 additions & 40 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,44 @@ import { babel } from '@rollup/plugin-babel';
import json from '@rollup/plugin-json';


const base = {
plugins: [
nodeResolve(),
commonjs(),
json(),
eslint(),
babel({ sourceMap: true }),
terser()
]
};
const plugins = [
nodeResolve(),
commonjs(),
json(),
eslint(),
babel({ sourceMap: true }),
terser()
];

const e2e = Object.assign({}, base, {
input: 'e2e/client-source.js',
output: {
file: 'e2e/client.js',
format: 'es'
export default [
{
input: 'e2e/client-source.js',
output: {
file: 'e2e/client.js',
format: 'es'
},
plugins
},
{
input: 'src/index.js',
output: {
file: 'dist/index.js',
format: 'es'
},
plugins
},
{
input: 'src/index.js',
output: {
file: 'dist/SpringRoll-Container-umd.js',
format: 'umd',
name: 'springroll',
extend: true,
sourcemap: true,
globals: {
'bellhop-iframe': 'Bellhop'
}
},
plugins
}
});

const es = Object.assign({}, base, {
input: 'src/index.js',
output: {
file: 'dist/index.js',
format: 'es'
}
});

const umd = Object.assign({}, base, {
input: 'src/index.js',
output: {
file: 'dist/SpringRoll-Container-umd.js',
format: 'umd',
name: 'springroll',
extend: true,
sourcemap: true,
globals: {
'bellhop-iframe': 'Bellhop'
}
}
});

module.exports = [umd, es, e2e];
];

0 comments on commit 62b37db

Please sign in to comment.