diff --git a/rollup.config.browser.js b/rollup.config.browser.js index 95977b4866a..8d66b8165a7 100644 --- a/rollup.config.browser.js +++ b/rollup.config.browser.js @@ -8,6 +8,7 @@ config.plugins.push({ } }); +config.entry = 'src/browser-entry.js'; config.format = 'umd'; config.dest = 'dist/rollup.browser.js'; diff --git a/rollup.config.js b/rollup.config.js index 9ae4776bdd6..396e71e2ed9 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -20,7 +20,7 @@ var banner = readFileSync( 'src/banner.js', 'utf-8' ) .replace( '${commitHash}', commitHash ); export default { - entry: 'src/rollup.js', + entry: 'src/node-entry.js', plugins: [ buble({ include: [ 'src/**', 'node_modules/acorn/**' ], diff --git a/src/browser-entry.js b/src/browser-entry.js new file mode 100644 index 00000000000..f2f98fb1424 --- /dev/null +++ b/src/browser-entry.js @@ -0,0 +1 @@ +export { default as rollup } from './rollup/index.js'; \ No newline at end of file diff --git a/src/rollup.js b/src/node-entry.js similarity index 100% rename from src/rollup.js rename to src/node-entry.js