react-native-electron-platform 0.0.17 → 0.0.18
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 +1 -1
- package/webpack.config.mjs +5 -22
package/package.json
CHANGED
package/webpack.config.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import path from 'path';
|
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
import { dirname } from 'path';
|
|
4
4
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
5
|
+
import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin';
|
|
5
6
|
import fs from 'fs';
|
|
6
7
|
import packageJson from '../../package.json' with { type: 'json' };
|
|
7
8
|
import { generateAlias, generateFallback } from './src/webpackConfigHelper.mjs';
|
|
@@ -71,17 +72,7 @@ export default {
|
|
|
71
72
|
use: {
|
|
72
73
|
loader: 'babel-loader',
|
|
73
74
|
options: {
|
|
74
|
-
|
|
75
|
-
'@babel/preset-env',
|
|
76
|
-
'@babel/preset-react',
|
|
77
|
-
'@babel/preset-typescript',
|
|
78
|
-
],
|
|
79
|
-
plugins: [
|
|
80
|
-
['@babel/plugin-transform-class-properties', { loose: true }],
|
|
81
|
-
['@babel/plugin-transform-private-methods', { loose: true }],
|
|
82
|
-
['@babel/plugin-transform-private-property-in-object', { loose: true }],
|
|
83
|
-
'@babel/plugin-transform-runtime',
|
|
84
|
-
],
|
|
75
|
+
plugins: ['react-refresh/babel'],
|
|
85
76
|
},
|
|
86
77
|
},
|
|
87
78
|
},
|
|
@@ -93,16 +84,7 @@ export default {
|
|
|
93
84
|
use: {
|
|
94
85
|
loader: 'babel-loader',
|
|
95
86
|
options: {
|
|
96
|
-
|
|
97
|
-
'@babel/preset-env',
|
|
98
|
-
'@babel/preset-react',
|
|
99
|
-
'@babel/preset-typescript',
|
|
100
|
-
],
|
|
101
|
-
plugins: [
|
|
102
|
-
['@babel/plugin-transform-class-properties', { loose: true }],
|
|
103
|
-
['@babel/plugin-transform-private-methods', { loose: true }],
|
|
104
|
-
['@babel/plugin-transform-private-property-in-object', { loose: true }],
|
|
105
|
-
],
|
|
87
|
+
plugins: ['react-refresh/babel'],
|
|
106
88
|
},
|
|
107
89
|
},
|
|
108
90
|
},
|
|
@@ -141,6 +123,7 @@ export default {
|
|
|
141
123
|
},
|
|
142
124
|
|
|
143
125
|
plugins: [
|
|
126
|
+
new ReactRefreshWebpackPlugin(),
|
|
144
127
|
new CopyFontsPlugin(),
|
|
145
128
|
new HtmlWebpackPlugin({
|
|
146
129
|
template: path.resolve(__dirname, 'src/index.html'),
|
|
@@ -156,4 +139,4 @@ export default {
|
|
|
156
139
|
maxEntrypointSize: 512000,
|
|
157
140
|
maxAssetSize: 512000,
|
|
158
141
|
},
|
|
159
|
-
};
|
|
142
|
+
};
|