Skip to content

Commit

Permalink
Stub he only for web build
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Feb 24, 2024
1 parent e527314 commit ede5985
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ function getBasicConfig() {

resolve: {
alias: {
"he": path.resolve(__dirname, "./util/he.stub.ts"),
"http": path.resolve(__dirname, "./util/http.stub.ts"),
"node-fetch": path.resolve(__dirname, "./util/node-fetch.stub.ts")
},
Expand Down Expand Up @@ -89,6 +88,9 @@ module.exports = [
],

resolve: {
alias: {
"he": path.resolve(__dirname, "./util/he.stub.ts")
},
plugins: [
// Handle .ts => .js resolution
new ResolveTypeScriptPlugin()
Expand Down

0 comments on commit ede5985

Please sign in to comment.