@startupjs/bundler 0.45.2 → 0.45.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs/bundler",
3
- "version": "0.45.2",
3
+ "version": "0.45.5",
4
4
  "description": "Opinionated scripts and configs to develop a react-native-web project",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -21,12 +21,12 @@
21
21
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
22
22
  "@startupjs/babel-plugin-react-css-modules": "^6.5.4-1",
23
23
  "@startupjs/css-to-react-native-transform": "^1.9.0-1",
24
- "@startupjs/plugin": "^0.45.1",
24
+ "@startupjs/plugin": "^0.45.4",
25
25
  "@svgr/webpack": "~5.5.0",
26
26
  "assets-webpack-plugin": "^7.1.1",
27
27
  "autoprefixer": "^10.4.0",
28
28
  "babel-loader": "^8.2.3",
29
- "babel-preset-startupjs": "^0.45.2",
29
+ "babel-preset-startupjs": "^0.45.5",
30
30
  "css-loader": "^6.5.0",
31
31
  "css-minimizer-webpack-plugin": "^3.1.1",
32
32
  "file-loader": "^6.2.0",
@@ -50,5 +50,5 @@
50
50
  "peerDependencies": {
51
51
  "react-native-svg": ">= 12.1.0"
52
52
  },
53
- "gitHead": "5d0135b195e79bed0d67a4138b60aa7b665d2195"
53
+ "gitHead": "140826b16f0270cfdd328cdc1daf00da39c63787"
54
54
  }
@@ -59,17 +59,18 @@ module.exports = function getConfig (env, {
59
59
  forceCompileModules = forceCompileModules
60
60
  .concat(getPluginsForceCompileList())
61
61
 
62
- /**
63
- * path.normalize needs because webpack for Windows doesn't accept paths in
62
+ /**
63
+ * path.normalize needs because webpack for Windows doesn't accept paths in
64
64
  * *nix format (with slash delemeter) in the include section.
65
- * replaceAll('\\', '\\\\') needs for masking backslash in Windows-style paths
65
+ * .replace(/\\/g, '\\\\') needs for masking backslash in Windows-style paths
66
66
  * in the regular expression
67
- */
67
+ */
68
68
  const forceCompileModulesExpression = new RegExp(`${
69
69
  path.normalize('node_modules/')
70
70
  }(?:react-native-(?!web)|${
71
71
  forceCompileModules.map(v => path.normalize(v)).join('|')
72
- })`.replaceAll('\\', '\\\\'))
72
+ })`.replace(/\\/g, '\\\\')
73
+ )
73
74
 
74
75
  return pickBy({
75
76
  mode: PROD ? 'production' : 'development',