@genesislcap/webpack-builder 14.149.0 → 14.150.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/dist/config/plugins.d.ts.map +1 -1
- package/dist/config/plugins.js +12 -0
- package/package.json +4 -3
- package/src/config/plugins.ts +12 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/config/plugins.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/config/plugins.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAM3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiB7C,eAAO,MAAM,OAAO,QAAS,YAAY,KAAG,aAAa,CAAC,SAAS,CA6ElE,CAAC"}
|
package/dist/config/plugins.js
CHANGED
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const node_fs_1 = require("node:fs");
|
|
6
6
|
const node_path_1 = require("node:path");
|
|
7
7
|
const build_kit_1 = require("@genesislcap/build-kit");
|
|
8
|
+
const circular_dependency_plugin_1 = tslib_1.__importDefault(require("circular-dependency-plugin"));
|
|
8
9
|
const copy_webpack_plugin_1 = tslib_1.__importDefault(require("copy-webpack-plugin"));
|
|
9
10
|
const html_webpack_plugin_1 = tslib_1.__importDefault(require("html-webpack-plugin"));
|
|
10
11
|
const mini_css_extract_plugin_1 = tslib_1.__importDefault(require("mini-css-extract-plugin"));
|
|
@@ -38,6 +39,17 @@ const plugins = (ctx) => {
|
|
|
38
39
|
],
|
|
39
40
|
}),
|
|
40
41
|
new webpack_1.DefinePlugin(define),
|
|
42
|
+
new circular_dependency_plugin_1.default({
|
|
43
|
+
// exclude detection of files based on a RegExp
|
|
44
|
+
exclude: /a\.js|node_modules/,
|
|
45
|
+
// add errors to webpack instead of warnings
|
|
46
|
+
failOnError: false,
|
|
47
|
+
// allow import cycles that include an asyncronous import,
|
|
48
|
+
// e.g. via import(/* webpackMode: "weak" */ './file.js')
|
|
49
|
+
allowAsyncCycles: false,
|
|
50
|
+
// set the current working directory for displaying module paths
|
|
51
|
+
cwd: process.cwd(),
|
|
52
|
+
}),
|
|
41
53
|
new webpackbar_1.default(),
|
|
42
54
|
new mini_css_extract_plugin_1.default(),
|
|
43
55
|
(rootElement || !federatedIndexPresent) &&
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/webpack-builder",
|
|
3
3
|
"description": "Webpack builder",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.150.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
"dev": "tsc -b ./tsconfig.json -w"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@genesislcap/build-kit": "14.
|
|
18
|
+
"@genesislcap/build-kit": "14.150.0",
|
|
19
19
|
"@module-federation/dashboard-plugin": "2.6.5",
|
|
20
20
|
"@pixability-ui/federated-types": "^0.2.0",
|
|
21
21
|
"@types/webpack-env": "^1.18.4",
|
|
22
22
|
"camel-case": "^4.1.2",
|
|
23
|
+
"circular-dependency-plugin": "^5.2.2",
|
|
23
24
|
"consola": "^3.0.2",
|
|
24
25
|
"copy-webpack-plugin": "^11.0.0",
|
|
25
26
|
"css-loader": "^6.6.0",
|
|
@@ -57,5 +58,5 @@
|
|
|
57
58
|
"publishConfig": {
|
|
58
59
|
"access": "public"
|
|
59
60
|
},
|
|
60
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "b1e9c28c8b2cc001814e259a0b6d51ab30ed5381"
|
|
61
62
|
}
|
package/src/config/plugins.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { existsSync } from 'node:fs';
|
|
|
2
2
|
import { resolve, join } from 'node:path';
|
|
3
3
|
import type { BuildContext } from '@genesislcap/build-kit';
|
|
4
4
|
import { objToSnakeCase, resolveDefineConfig } from '@genesislcap/build-kit';
|
|
5
|
+
import CircularDependencyPlugin from 'circular-dependency-plugin';
|
|
5
6
|
import CopyPlugin from 'copy-webpack-plugin';
|
|
6
7
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
7
8
|
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
|
@@ -52,6 +53,17 @@ export const plugins = (ctx: BuildContext): Configuration['plugins'] => {
|
|
|
52
53
|
],
|
|
53
54
|
}),
|
|
54
55
|
new DefinePlugin(define),
|
|
56
|
+
new CircularDependencyPlugin({
|
|
57
|
+
// exclude detection of files based on a RegExp
|
|
58
|
+
exclude: /a\.js|node_modules/,
|
|
59
|
+
// add errors to webpack instead of warnings
|
|
60
|
+
failOnError: false, // TODO: set back to true after resolving detected issues
|
|
61
|
+
// allow import cycles that include an asyncronous import,
|
|
62
|
+
// e.g. via import(/* webpackMode: "weak" */ './file.js')
|
|
63
|
+
allowAsyncCycles: false,
|
|
64
|
+
// set the current working directory for displaying module paths
|
|
65
|
+
cwd: process.cwd(),
|
|
66
|
+
}),
|
|
55
67
|
new WebpackBar(),
|
|
56
68
|
new MiniCssExtractPlugin(),
|
|
57
69
|
(rootElement || !federatedIndexPresent) &&
|