@startupjs/bundler 0.40.9 → 0.42.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 +5 -4
- package/webpack.web.config.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs/bundler",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
4
4
|
"description": "Opinionated scripts and configs to develop a react-native-web project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,13 +19,14 @@
|
|
|
19
19
|
"@mdx-js/loader": "^1.6.22",
|
|
20
20
|
"@mdx-js/mdx": "^1.6.22",
|
|
21
21
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
|
|
22
|
+
"@startupjs/babel-plugin-react-css-modules": "^6.5.4-1",
|
|
22
23
|
"@startupjs/css-to-react-native-transform": "^1.9.0-1",
|
|
23
|
-
"@startupjs/plugin": "^0.
|
|
24
|
+
"@startupjs/plugin": "^0.42.0",
|
|
24
25
|
"@svgr/webpack": "~5.5.0",
|
|
25
26
|
"assets-webpack-plugin": "^7.1.1",
|
|
26
27
|
"autoprefixer": "^10.4.0",
|
|
27
28
|
"babel-loader": "^8.2.3",
|
|
28
|
-
"babel-preset-startupjs": "^0.
|
|
29
|
+
"babel-preset-startupjs": "^0.42.0",
|
|
29
30
|
"css-loader": "^6.5.0",
|
|
30
31
|
"css-minimizer-webpack-plugin": "^3.1.1",
|
|
31
32
|
"file-loader": "^6.2.0",
|
|
@@ -49,5 +50,5 @@
|
|
|
49
50
|
"peerDependencies": {
|
|
50
51
|
"react-native-svg": ">= 12.1.0"
|
|
51
52
|
},
|
|
52
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "c1f6702f87fc833d73ee693bb353304b9279a917"
|
|
53
54
|
}
|
package/webpack.web.config.js
CHANGED
|
@@ -10,6 +10,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
|
|
10
10
|
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
|
|
11
11
|
const { LOCAL_IDENT_NAME } = require('babel-preset-startupjs/constants')
|
|
12
12
|
const autoprefixer = require('autoprefixer')
|
|
13
|
+
const { getLocalIdent } = require('@startupjs/babel-plugin-react-css-modules/utils')
|
|
13
14
|
const DEV_PORT = ~~process.env.DEV_PORT || 3010
|
|
14
15
|
const PROD = !process.env.WEBPACK_DEV
|
|
15
16
|
const STYLES_PATH = path.join(process.cwd(), '/styles/index.styl')
|
|
@@ -251,6 +252,7 @@ module.exports = function getConfig (env, {
|
|
|
251
252
|
loader: 'css-loader',
|
|
252
253
|
options: {
|
|
253
254
|
modules: {
|
|
255
|
+
getLocalIdent,
|
|
254
256
|
localIdentName: LOCAL_IDENT_NAME
|
|
255
257
|
}
|
|
256
258
|
}
|
|
@@ -258,7 +260,9 @@ module.exports = function getConfig (env, {
|
|
|
258
260
|
{
|
|
259
261
|
loader: 'postcss-loader',
|
|
260
262
|
options: {
|
|
261
|
-
|
|
263
|
+
postcssOptions: {
|
|
264
|
+
plugins: [autoprefixer]
|
|
265
|
+
}
|
|
262
266
|
}
|
|
263
267
|
},
|
|
264
268
|
{
|