Commit df43b7a1 authored by Fred Chasen's avatar Fred Chasen
Browse files

Update rollup to work with cjs in legacy build

parent edd9a8e0
Pipeline #33082 passed with stage
in 4 minutes and 25 seconds
......@@ -5,7 +5,9 @@ import json from "@rollup/plugin-json";
import pkg from './package.json';
const plugins = [
nodeResolve(),
nodeResolve({
extensions: ['.cjs','.mjs', '.js']
}),
commonjs(),
json()
];
......@@ -22,7 +24,7 @@ export default [
plugins: plugins
},
{
input: "./lib/polyfill/polyfill.js",
input: "./lib/polyfill/polyfill.cjs",
output: {
name: 'PagedPolyfill',
file: "./dist/paged.legacy.polyfill.js",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment