Skip to content

Commit

Permalink
stub out package that uses eval
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Nov 12, 2021
1 parent 46fbdf7 commit c9587f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/errata/inquire.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// We intend to run in browsers, which don't support runtime `require`.
// https://github.com/protobufjs/protobuf.js/pull/1548/files#r588874248
// Stub this out to prevent CSP spam.
module.exports = () => null;
5 changes: 5 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ module.exports = (env, argv) => {
},
],
},
resolve: {
alias: {
'@protobufjs/inquire': path.resolve(__dirname, "./src/errata/inquire"),
},
},
plugins: getPlugins(isDev),
performance: getPerformance(),
node: {
Expand Down

0 comments on commit c9587f5

Please sign in to comment.