@startupjs/bundler 0.44.14 → 0.44.23
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/lib/mdxExamplesLoader.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs/bundler",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.23",
|
|
4
4
|
"description": "Opinionated scripts and configs to develop a react-native-web project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -26,7 +26,7 @@
|
|
|
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.44.
|
|
29
|
+
"babel-preset-startupjs": "^0.44.23",
|
|
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": "141d92b9dc3d3a589cf07e478ff23bd8ce57dd7e"
|
|
54
54
|
}
|
package/webpack.web.config.js
CHANGED
|
@@ -121,7 +121,12 @@ module.exports = function getConfig (env, {
|
|
|
121
121
|
name (module) {
|
|
122
122
|
// get the name. E.g. node_modules/packageName/not/this/part.js
|
|
123
123
|
// or node_modules/packageName
|
|
124
|
-
|
|
124
|
+
let packageName
|
|
125
|
+
try {
|
|
126
|
+
packageName = module.context.match(/[\\/]node_modules[\\/](@[^\\/]+[\\/][^\\/]+|[^@\\/]+)([\\/]|$)/)[1]
|
|
127
|
+
} catch (err) {
|
|
128
|
+
packageName = 'not_found'
|
|
129
|
+
}
|
|
125
130
|
// npm package names are URL-safe, but some servers don't like @ symbols
|
|
126
131
|
return `npm.${packageName.replace('@', '').replace(/[\\/]/, '_')}`
|
|
127
132
|
}
|