Skip to content

Commit

Permalink
Fix circular reference (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Mar 15, 2022
1 parent 9687c83 commit 68fb688
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,19 @@ let rollupConfig = {
bundle("cjs"),
bundle("cjs", {minify: true})
],
onwarn (warning, rollupWarn) {
if (warning.code !== 'CIRCULAR_DEPENDENCY') {
rollupWarn(warning);
}
}
};

gulp.task("bundle", async function () {
for (const bundle of rollupConfig.output) {
let b = await rollup.rollup({
input: rollupConfig.input,
plugins: bundle.plugins
plugins: bundle.plugins,
onwarn: rollupConfig.onwarn
});

await b.write(bundle);
Expand Down
1 change: 1 addition & 0 deletions src/util.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Color from "./color.js";
import multiplyMatrices from "./multiply-matrices.js";

/**
Expand Down

0 comments on commit 68fb688

Please sign in to comment.