Skip to content

Commit

Permalink
web: Fix running on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hsjoberg committed Sep 26, 2024
1 parent 849861c commit e4858a6
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions web/webpack/webpack.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,48 +51,48 @@ module.exports = [
new NodePolyfillPlugin(),

new webpack.NormalModuleReplacementPlugin(
/node_modules\/native-base.*utils\/index\.js/,
path.join(__dirname, "../web-hacks/native-base-utils-hack.js")
/node_modules[\\/]native-base.*utils[\\/]index\.js/,
path.join(__dirname, "../web-hacks/native-base-utils-hack.js"),
),

new webpack.NormalModuleReplacementPlugin(
/node_modules\/react-native-permissions/,
path.join(__dirname, "../web-hacks/react-native-permission.js")
/node_modules[\\/]react-native-permissions/,
path.join(__dirname, "../web-hacks/react-native-permission.js"),
),

new webpack.NormalModuleReplacementPlugin(
/node_modules\/react-native-sqlite-storage/,
path.join(__dirname, "../web-hacks/react-native-sqlite-storage.js")
/node_modules[\\/]react-native-sqlite-storage/,
path.join(__dirname, "../web-hacks/react-native-sqlite-storage.js"),
),

new webpack.NormalModuleReplacementPlugin(
/node_modules\/react-native-dialogs/,
path.join(__dirname, "../web-hacks/react-native-dialogs.js")
/node_modules[\\/]react-native-dialogs/,
path.join(__dirname, "../web-hacks/react-native-dialogs.js"),
),

new webpack.NormalModuleReplacementPlugin(
/node_modules\/react-native-fs/,
path.join(__dirname, "../web-hacks/react-native-fs.js")
/node_modules[\\/]react-native-fs/,
path.join(__dirname, "../web-hacks/react-native-fs.js"),
),

new webpack.NormalModuleReplacementPlugin(
/node_modules\/@react-native-community\/clipboard/,
path.join(__dirname, "../web-hacks/@react-native-community/clipboard.js")
/node_modules[\\/]@react-native-community[\\/]clipboard/,
path.join(__dirname, "../web-hacks/@react-native-community/clipboard.js"),
),

new webpack.NormalModuleReplacementPlugin(
/node_modules\/react-native-securerandom/,
path.join(__dirname, "../web-hacks/react-native-securerandom.js")
/node_modules[\\/]react-native-securerandom/,
path.join(__dirname, "../web-hacks/react-native-securerandom.js"),
),

new webpack.NormalModuleReplacementPlugin(
/node_modules\/react-native-build-config/,
path.join(__dirname, "../web-hacks/react-native-build-config.js")
/node_modules[\\/]react-native-build-config/,
path.join(__dirname, "../web-hacks/react-native-build-config.js"),
),

new webpack.NormalModuleReplacementPlugin(
/node_modules\/react-native-icloudstore/,
path.join(__dirname, "../web-hacks/react-native-icloudstore.js")
/node_modules[\\/]react-native-icloudstore/,
path.join(__dirname, "../web-hacks/react-native-icloudstore.js"),
),

new webpack.EnvironmentPlugin({ JEST_WORKER_ID: null }),
Expand Down

0 comments on commit e4858a6

Please sign in to comment.