We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17d8bcb commit 2db2773Copy full SHA for 2db2773
rollup.config.js
@@ -1,6 +1,11 @@
1
import {terser} from "rollup-plugin-terser";
2
import * as meta from "./package.json";
3
4
+function onwarn(message, warn) {
5
+ if (message.code === "CIRCULAR_DEPENDENCY") return;
6
+ warn(message);
7
+}
8
+
9
const config = {
10
input: "src/index.js",
11
external: Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)),
@@ -13,7 +18,8 @@ const config = {
13
18
banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}`,
14
19
globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"})))
15
20
},
16
- plugins: []
21
+ plugins: [],
22
+ onwarn
17
23
};
24
25
export default [
0 commit comments