@machtwatch/react-script 1.2.11-alpha.15 → 1.2.11-alpha.17
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": "@machtwatch/react-script",
|
|
3
|
-
"version": "1.2.11-alpha.
|
|
3
|
+
"version": "1.2.11-alpha.17",
|
|
4
4
|
"description": "Machtwatch React script",
|
|
5
5
|
"author": "Danny Reza Miloen <danny@machtwatch.co.id>",
|
|
6
6
|
"contributors": [],
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
"@babel/plugin-proposal-function-bind": "^7.16.7",
|
|
41
41
|
"@babel/plugin-proposal-json-strings": "^7.17.12",
|
|
42
42
|
"@babel/plugin-proposal-optional-chaining": "^7.17.12",
|
|
43
|
+
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
44
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
43
45
|
"@babel/plugin-proposal-throw-expressions": "^7.16.7",
|
|
44
46
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
45
47
|
"@babel/plugin-transform-react-constant-elements": "^7.17.12",
|
|
@@ -100,8 +102,9 @@
|
|
|
100
102
|
"simple-progress-webpack-plugin": "^2.0.0",
|
|
101
103
|
"speed-measure-webpack-plugin": "^1.5.0",
|
|
102
104
|
"style-loader": "^3.3.1",
|
|
103
|
-
"stylelint": "^
|
|
104
|
-
"stylelint-
|
|
105
|
+
"stylelint": "^16.10.0",
|
|
106
|
+
"stylelint-config-recommended-less": "^3.0.1",
|
|
107
|
+
"stylelint-webpack-plugin": "^5.0.1",
|
|
105
108
|
"terser": "^5.14.1",
|
|
106
109
|
"terser-webpack-plugin": "^5.3.3",
|
|
107
110
|
"url-loader": "^4.1.1",
|
|
@@ -162,7 +162,12 @@ const webpackConfig = ({ isClient }) => ({
|
|
|
162
162
|
extensions: ['.js', '.jsx', '.mjs'],
|
|
163
163
|
modules: [paths.appSrc, path.resolve(paths.appSrc, 'node_modules'), 'node_modules', './node_modules'],
|
|
164
164
|
alias: {
|
|
165
|
-
build: paths.appBuild
|
|
165
|
+
build: paths.appBuild,
|
|
166
|
+
'@helpers': path.resolve(paths.appSrc, 'helpers'),
|
|
167
|
+
'@components': path.resolve(paths.appSrc, 'components'),
|
|
168
|
+
'@baseComponents': path.resolve(paths.appSrc, 'baseComponents'),
|
|
169
|
+
'react/jsx-dev-runtime': 'react/jsx-dev-runtime.js',
|
|
170
|
+
'react/jsx-runtime': 'react/jsx-runtime.js'
|
|
166
171
|
},
|
|
167
172
|
},
|
|
168
173
|
|
|
@@ -305,7 +310,7 @@ const styleLoaders = ({ isClient }) => [
|
|
|
305
310
|
browsers: pkg.browserslist
|
|
306
311
|
}
|
|
307
312
|
],
|
|
308
|
-
|
|
313
|
+
'tailwindcss',
|
|
309
314
|
'postcss-modules-values',
|
|
310
315
|
'postcss-flexbugs-fixes'
|
|
311
316
|
],
|
|
@@ -484,7 +489,7 @@ const clientConfig = {
|
|
|
484
489
|
plugins: [
|
|
485
490
|
...baseClientConfig.plugins,
|
|
486
491
|
new StyleLintPlugin({
|
|
487
|
-
configFile: `${paths.appPath}/.stylelintrc`,
|
|
492
|
+
configFile: `${paths.appPath}/.stylelintrc.json`,
|
|
488
493
|
extensions: ['less'],
|
|
489
494
|
exclude: ['node_modules', 'coverage'],
|
|
490
495
|
}),
|