-
-
Save Retsam/9c35799c3b1867d9a1170f8c04301308 to your computer and use it in GitHub Desktop.
Webpack circular dependency
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import b from "./b"; | |
export default "a"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import c from "./c"; | |
export default "b"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import a from "./a"; | |
export default "c"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require("path"); | |
const webpack = require("webpack"); | |
const CircularDependencyPlugin = require("circular-dependency-plugin"); | |
module.exports = { | |
entry: "./a", | |
output: { | |
filename: "bundle.js", | |
path: path.resolve("dist") | |
}, | |
plugins: [ | |
new CircularDependencyPlugin() | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment