2018-11-08 16:45:01 +03:00
|
|
|
import multi from "rollup-plugin-multi-entry";
|
2018-11-22 06:30:01 +03:00
|
|
|
|
2018-11-08 16:45:01 +03:00
|
|
|
import baseConfig from "./rollup.config";
|
2018-11-22 06:30:01 +03:00
|
|
|
|
2018-11-08 16:45:01 +03:00
|
|
|
const [node, browser] = baseConfig;
|
|
|
|
|
|
|
|
node.input = ["dist-esm/test/*.js", "dist-esm/test/node/*.js"];
|
|
|
|
node.output.file = "dist-test/index.js";
|
|
|
|
node.plugins.unshift(multi());
|
|
|
|
node.external.push("assert", "path");
|
|
|
|
node.context = "null";
|
|
|
|
|
|
|
|
browser.input = ["dist-esm/test/*.js", "dist-esm/test/browser/*.js"];
|
|
|
|
browser.output.file = "dist-test/index.browser.js";
|
|
|
|
browser.plugins.unshift(multi());
|
|
|
|
browser.context = "null";
|
|
|
|
|
|
|
|
export default [node, browser];
|