@startupjs/bundler 0.45.4 → 0.46.0
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 +4 -4
- package/webpack.web.config.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs/bundler",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.0",
|
|
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.
|
|
24
|
+
"@startupjs/plugin": "^0.46.0",
|
|
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.
|
|
29
|
+
"babel-preset-startupjs": "^0.46.0",
|
|
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": "
|
|
53
|
+
"gitHead": "a07449b28d9595db4224adf2ca262fcee5241836"
|
|
54
54
|
}
|
package/webpack.web.config.js
CHANGED
|
@@ -62,14 +62,14 @@ module.exports = function getConfig (env, {
|
|
|
62
62
|
/**
|
|
63
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
|
-
* .replace(
|
|
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
|
-
})`.replace(
|
|
72
|
+
})`.replace(/\\/g, '\\\\')
|
|
73
73
|
)
|
|
74
74
|
|
|
75
75
|
return pickBy({
|
|
@@ -243,6 +243,8 @@ module.exports = function getConfig (env, {
|
|
|
243
243
|
}
|
|
244
244
|
]
|
|
245
245
|
},
|
|
246
|
+
// TODO
|
|
247
|
+
// https://webpack.js.org/guides/asset-modules/
|
|
246
248
|
{
|
|
247
249
|
test: /\.(jpg|png)$/,
|
|
248
250
|
use: {
|
|
@@ -262,6 +264,7 @@ module.exports = function getConfig (env, {
|
|
|
262
264
|
{
|
|
263
265
|
loader: 'css-loader',
|
|
264
266
|
options: {
|
|
267
|
+
url: false, // NOTE can remove when change file loader to https://webpack.js.org/guides/asset-modules/
|
|
265
268
|
modules: {
|
|
266
269
|
getLocalIdent,
|
|
267
270
|
localIdentName: LOCAL_IDENT_NAME
|