You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
345 B

5 years ago
const definition = require("./package.json");
const dependencies = Object.keys(definition.dependencies);
export default {
input: "index",
external: dependencies,
output: {
extend: true,
file: `build/${definition.name}.js`,
format: "umd",
globals: dependencies.reduce((p, v) => (p[v] = "d3", p), {}),
name: "d3"
}
};