Skip to content

Commit ac2716a

Browse files
ioedeveloperAniket-Engg
authored andcommitted
Resolve Noir github dependencies through proxy
1 parent 8fa911f commit ac2716a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apps/noir-compiler/webpack.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ module.exports = composePlugins(withNx(), (config) => {
6262
})
6363
)
6464

65+
config.plugins.push(
66+
new webpack.DefinePlugin({
67+
'fetch': `((...args) => args[0].href && (args[0]).href.startsWith('https://github.com') ? fetch('https://api.allorigins.win/raw?url=' + args[0].href) : fetch(...args))`,
68+
})
69+
)
70+
6571
// source-map loader
6672
config.module.rules.push({
6773
test: /\.js$/,

0 commit comments

Comments
 (0)