@startupjs/bundler 0.41.2 → 0.42.20
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 +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs/bundler",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.20",
|
|
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.20",
|
|
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": "9bfd354757920b839fcf9d21f7af8efa4aa58d0b"
|
|
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')
|
|
@@ -34,7 +35,8 @@ const DEFAULT_ALIAS = {
|
|
|
34
35
|
// fix warning requiring './locale': https://github.com/moment/moment/issues/1435
|
|
35
36
|
moment$: 'moment/moment.js',
|
|
36
37
|
'react-native': 'react-native-web',
|
|
37
|
-
'react-router-native': 'react-router-dom'
|
|
38
|
+
'react-router-native': 'react-router-dom',
|
|
39
|
+
'@fortawesome/react-native-fontawesome': '@fortawesome/react-fontawesome'
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
let DEFAULT_ENTRIES = [
|
|
@@ -251,6 +253,7 @@ module.exports = function getConfig (env, {
|
|
|
251
253
|
loader: 'css-loader',
|
|
252
254
|
options: {
|
|
253
255
|
modules: {
|
|
256
|
+
getLocalIdent,
|
|
254
257
|
localIdentName: LOCAL_IDENT_NAME
|
|
255
258
|
}
|
|
256
259
|
}
|
|
@@ -258,7 +261,9 @@ module.exports = function getConfig (env, {
|
|
|
258
261
|
{
|
|
259
262
|
loader: 'postcss-loader',
|
|
260
263
|
options: {
|
|
261
|
-
|
|
264
|
+
postcssOptions: {
|
|
265
|
+
plugins: [autoprefixer]
|
|
266
|
+
}
|
|
262
267
|
}
|
|
263
268
|
},
|
|
264
269
|
{
|
|
@@ -297,6 +302,7 @@ module.exports = function getConfig (env, {
|
|
|
297
302
|
loader: 'css-loader',
|
|
298
303
|
options: {
|
|
299
304
|
modules: {
|
|
305
|
+
getLocalIdent,
|
|
300
306
|
localIdentName: LOCAL_IDENT_NAME
|
|
301
307
|
}
|
|
302
308
|
}
|