@epilot360/webpack-config-epilot360 2.1.2 → 2.4.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.
|
@@ -8,6 +8,8 @@ const SystemJSPublicPathPlugin = require("systemjs-webpack-interop/SystemJSPubli
|
|
|
8
8
|
const EnvPrefixPlugin = require("webpack-env-prefix-plugin");
|
|
9
9
|
const { ESBuildMinifyPlugin } = require('esbuild-loader')
|
|
10
10
|
|
|
11
|
+
const resolveCwd = require('resolve-cwd');
|
|
12
|
+
|
|
11
13
|
module.exports = webpackConfigEpilot360ReactApp;
|
|
12
14
|
|
|
13
15
|
function webpackConfigEpilot360ReactApp(opts) {
|
|
@@ -52,6 +54,7 @@ function webpackConfigEpilot360ReactApp(opts) {
|
|
|
52
54
|
uniqueName: opts.projectName,
|
|
53
55
|
devtoolNamespace: `${opts.projectName}`,
|
|
54
56
|
publicPath: "",
|
|
57
|
+
chunkFilename: "[name].[contenthash].js",
|
|
55
58
|
},
|
|
56
59
|
module: {
|
|
57
60
|
rules: [
|
|
@@ -81,7 +84,7 @@ function webpackConfigEpilot360ReactApp(opts) {
|
|
|
81
84
|
},
|
|
82
85
|
},
|
|
83
86
|
{
|
|
84
|
-
loader: 'esbuild-loader',
|
|
87
|
+
loader: require.resolve('esbuild-loader', { paths: [__dirname] }),
|
|
85
88
|
options: {
|
|
86
89
|
loader: 'css',
|
|
87
90
|
minify: true
|
|
@@ -108,7 +111,7 @@ function webpackConfigEpilot360ReactApp(opts) {
|
|
|
108
111
|
},
|
|
109
112
|
{
|
|
110
113
|
test: /\.svg$/i,
|
|
111
|
-
loader: 'file-loader',
|
|
114
|
+
loader: require.resolve('file-loader', { paths: [__dirname] }),
|
|
112
115
|
},
|
|
113
116
|
],
|
|
114
117
|
},
|
|
@@ -151,6 +154,7 @@ function webpackConfigEpilot360ReactApp(opts) {
|
|
|
151
154
|
: new ForkTsCheckerWebpackPlugin({
|
|
152
155
|
typescript: {
|
|
153
156
|
mode: "write-references",
|
|
157
|
+
typescriptPath: resolveCwd('typescript')
|
|
154
158
|
},
|
|
155
159
|
}),
|
|
156
160
|
].filter(Boolean),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot360/webpack-config-epilot360",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "A webpack config for in-browser modules used with single-spa for Epilot360",
|
|
5
5
|
"main": "lib/webpack-config-epilot360-portal.js",
|
|
6
6
|
"directories": {
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"standalone-single-spa-webpack-plugin": "^1.1.0",
|
|
21
21
|
"style-loader": "^2.0.0",
|
|
22
22
|
"systemjs-webpack-interop": "^2.3.2",
|
|
23
|
-
"typescript": "^4.3.5",
|
|
24
23
|
"unused-files-webpack-plugin": "^3.4.0",
|
|
25
24
|
"webpack": "^5.50.0",
|
|
26
25
|
"webpack-bundle-analyzer": "^4.2.0",
|
|
@@ -31,5 +30,8 @@
|
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
32
|
"acorn-import-assertions": "^1.7.6"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"typescript": "^4.3.5"
|
|
34
36
|
}
|
|
35
37
|
}
|