Skip to content

Commit

Permalink
Stub fetch for rn
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Apr 22, 2024
1 parent 4bf01f9 commit daf339d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ module.exports = [
merge(getBasicConfig(), {
entry: path.resolve(__dirname, "./source/index.ts"),

externals: ["entities", "node-fetch"],
externals: ["entities"],

output: {
filename: "index.js",
Expand All @@ -118,6 +118,9 @@ module.exports = [
],

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

0 comments on commit daf339d

Please sign in to comment.