@vc-shell/config-generator 2.0.0-alpha.8 → 2.0.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/CHANGELOG.md +85 -234
- package/README.md +7 -10
- package/dist/index.d.ts +2 -25
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -47
- package/dist/index.js.map +1 -1
- package/dist/plugins/viteBladePlugin.d.ts +9 -0
- package/dist/plugins/viteBladePlugin.d.ts.map +1 -0
- package/dist/plugins/viteBladePlugin.js +94 -0
- package/dist/plugins/viteBladePlugin.js.map +1 -0
- package/dist/plugins/viteBladePlugin.test.d.ts +2 -0
- package/dist/plugins/viteBladePlugin.test.d.ts.map +1 -0
- package/dist/plugins/viteBladePlugin.test.js +90 -0
- package/dist/plugins/viteBladePlugin.test.js.map +1 -0
- package/dist/templates/vite.application.appconfig.d.ts.map +1 -1
- package/dist/templates/vite.application.appconfig.js +27 -5
- package/dist/templates/vite.application.appconfig.js.map +1 -1
- package/package.json +7 -8
- package/dist/templates/shared-deps.d.ts +0 -3
- package/dist/templates/shared-deps.d.ts.map +0 -1
- package/dist/templates/shared-deps.js +0 -3
- package/dist/templates/shared-deps.js.map +0 -1
- package/dist/templates/vite.dynamic-module.appconfig.d.ts +0 -7
- package/dist/templates/vite.dynamic-module.appconfig.d.ts.map +0 -1
- package/dist/templates/vite.dynamic-module.appconfig.js +0 -80
- package/dist/templates/vite.dynamic-module.appconfig.js.map +0 -1
- package/dist/templates/vite.dynamic-module.appconfig.test.d.ts +0 -2
- package/dist/templates/vite.dynamic-module.appconfig.test.d.ts.map +0 -1
- package/dist/templates/vite.dynamic-module.appconfig.test.js +0 -118
- package/dist/templates/vite.dynamic-module.appconfig.test.js.map +0 -1
- package/dist/templates/vite.host.appconfig.d.ts +0 -32
- package/dist/templates/vite.host.appconfig.d.ts.map +0 -1
- package/dist/templates/vite.host.appconfig.js +0 -43
- package/dist/templates/vite.host.appconfig.js.map +0 -1
- package/dist/templates/vite.host.appconfig.test.d.ts +0 -2
- package/dist/templates/vite.host.appconfig.test.d.ts.map +0 -1
- package/dist/templates/vite.host.appconfig.test.js +0 -51
- package/dist/templates/vite.host.appconfig.test.js.map +0 -1
- package/dist/types.d.ts +0 -36
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,120 +1,103 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
+
# [2.0.0](https://github.com/VirtoCommerce/vc-shell/compare/v1.2.3...v2.0.0) (2026-04-22)
|
|
3
4
|
|
|
4
5
|
### Features
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
### Bug Fixes
|
|
11
|
-
|
|
12
|
-
* remove duplicate changelog entries caused by multiline regex bug ([2f27d4c](https://github.com/VirtoCommerce/vc-shell/commit/2f27d4c2ca81452ddc1042af47a4648348e7e323))
|
|
13
|
-
# [2.0.0-alpha.6](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.5...v2.0.0-alpha.6) (2026-03-10)
|
|
14
|
-
|
|
15
|
-
### Bug Fixes
|
|
16
|
-
|
|
17
|
-
- strip shared dep styles from dynamic module builds ([4bb592e](https://github.com/VirtoCommerce/vc-shell/commit/4bb592e5c101bf23259b929b00776144810d182c))
|
|
18
|
-
|
|
19
|
-
# [2.0.0-alpha.5](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.4...v2.0.0-alpha.5) (2026-03-10)
|
|
20
|
-
|
|
21
|
-
### Bug Fixes
|
|
22
|
-
|
|
23
|
-
- pin @module-federation/dts-plugin to 2.0.1 to fix ESM/CJS fs-extra crash ([a41d233](https://github.com/VirtoCommerce/vc-shell/commit/a41d2335761e723eda33b45dbb45ef3e70752bf7))
|
|
24
|
-
|
|
25
|
-
# [2.0.0-alpha.4](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.3...v2.0.0-alpha.4) (2026-03-10)
|
|
26
|
-
|
|
27
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
28
|
-
|
|
29
|
-
# [2.0.0-alpha.3](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.2...v2.0.0-alpha.3) (2026-03-10)
|
|
30
|
-
|
|
31
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
32
|
-
|
|
33
|
-
# [2.0.0-alpha.2](https://github.com/VirtoCommerce/vc-shell/compare/v1.2.4-beta.8...v2.0.0-alpha.2) (2026-03-10)
|
|
34
|
-
|
|
35
|
-
### Code Refactoring
|
|
36
|
-
|
|
37
|
-
- remove unused components and update package resolutions ([26ff398](https://github.com/VirtoCommerce/vc-shell/commit/26ff398739d75b23f7f700542920a117e0022ff3))
|
|
38
|
-
|
|
39
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
40
|
-
|
|
41
|
-
# [2.0.0-alpha.1](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.0...v2.0.0-alpha.1) (2026-03-10)
|
|
42
|
-
|
|
43
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
44
|
-
|
|
45
|
-
# [2.0.0-alpha.0](https://github.com/VirtoCommerce/vc-shell/compare/v1.2.4-beta.8...v2.0.0-alpha.0) (2026-03-10)
|
|
46
|
-
|
|
47
|
-
### Features
|
|
48
|
-
|
|
49
|
-
- **core:** add Module Federation support and remove legacy UMD globals ([18c4026](https://github.com/VirtoCommerce/vc-shell/commit/18c402677846dfff8f077dccb7a782fcf5a778e0))
|
|
50
|
-
- **shared-deps:** export SHARED_DEP_NAMES as single source of truth for MF shared deps ([18f68ef](https://github.com/VirtoCommerce/vc-shell/commit/18f68efda491d7e595acfb4b1a547d82658967f2))
|
|
51
|
-
|
|
52
|
-
### Bug Fixes
|
|
53
|
-
|
|
54
|
-
- **vite-config:** normalize symlinked paths in stripExternalStyles via realpathSync ([6f825aa](https://github.com/VirtoCommerce/vc-shell/commit/6f825aa66b2bb209dba6a7497a3af4de981022d8))
|
|
55
|
-
|
|
56
|
-
### Documentation
|
|
57
|
-
|
|
58
|
-
- **vite-config:** clarify build-time vs runtime MF roles in getHostFederationConfig ([cf2f9b7](https://github.com/VirtoCommerce/vc-shell/commit/cf2f9b7dfd358aa192fac580c2697205f4649984))
|
|
59
|
-
|
|
60
|
-
## [1.2.4-beta.8](https://github.com/VirtoCommerce/vc-shell/compare/v1.2.4-beta.7...v1.2.4-beta.8) (2026-03-04)
|
|
61
|
-
|
|
62
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
63
|
-
|
|
64
|
-
## [1.2.4-beta.7](https://github.com/VirtoCommerce/vc-shell/compare/v1.2.4-beta.6...v1.2.4-beta.7) (2026-03-04)
|
|
65
|
-
|
|
66
|
-
### Code Refactoring
|
|
67
|
-
|
|
68
|
-
- dynamically import `rollup-plugin-visualizer` to conditionally load it when analysis is enabled ([57f5182](https://github.com/VirtoCommerce/vc-shell/commit/57f5182496b5d2a9897f6e1f70522177782316c7))
|
|
69
|
-
|
|
70
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
71
|
-
|
|
72
|
-
## [1.2.4-beta.6](https://github.com/VirtoCommerce/vc-shell/compare/v1.2.4-beta.5...v1.2.4-beta.6) (2026-03-04)
|
|
73
|
-
|
|
74
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
75
|
-
|
|
76
|
-
## [1.2.4-beta.5](https://github.com/VirtoCommerce/vc-shell/compare/v1.2.4-beta.4...v1.2.4-beta.5) (2026-03-04)
|
|
77
|
-
|
|
78
|
-
### Features
|
|
79
|
-
|
|
80
|
-
- **vite-config:** add modules-library build configuration ([cce505f](https://github.com/VirtoCommerce/vc-shell/commit/cce505f77b6ada4d5488410d11b62b78396961d3))
|
|
7
|
+
- **dynamic-modules:** add hash-based cache busting for module assets ([eb47537](https://github.com/VirtoCommerce/vc-shell/commit/eb475375fad72f4c00016e0e8d9298cdbc44a321))
|
|
8
|
+
- **mf-host:** add mfHostConfig() vite helper for optimizeDeps ([501841d](https://github.com/VirtoCommerce/vc-shell/commit/501841d457ad9f3c671c41723b65045fae075d28))
|
|
9
|
+
- **mf-host:** import shared deps from mf-config instead of duplicating ([51d2df1](https://github.com/VirtoCommerce/vc-shell/commit/51d2df126ac45ca388c7eb5ce8943fc324938a25))
|
|
10
|
+
- **mf:** extract Module Federation loader into @vc-shell/mf-config and @vc-shell/mf-host ([9b079c2](https://github.com/VirtoCommerce/vc-shell/commit/9b079c27bc1497d89849b909f62c1403eff0c9b4))
|
|
81
11
|
- re-enable circular dependency detection in production builds ([a139829](https://github.com/VirtoCommerce/vc-shell/commit/a139829f54e40e7ff987eee1effdfbe88c90343b))
|
|
12
|
+
- **setup:** introduce unsetup script and enhance setup process ([0b0ad7f](https://github.com/VirtoCommerce/vc-shell/commit/0b0ad7f2a47564783b3914f58f04d5cc21ce828e))
|
|
13
|
+
- **vc-loading:** replace dots loader with bar sweep and add instant preloader ([019e8d6](https://github.com/VirtoCommerce/vc-shell/commit/019e8d6fb5736f766bdba2841c3b5cf7f00b3b77))
|
|
14
|
+
- **vite-config:** add modules-library build configuration ([cce505f](https://github.com/VirtoCommerce/vc-shell/commit/cce505f77b6ada4d5488410d11b62b78396961d3))
|
|
82
15
|
- **vite-config:** add Vite server.warmup for monorepo dev server pre-transform ([c80ea68](https://github.com/VirtoCommerce/vc-shell/commit/c80ea688203f21dcd37a2e506f3be4218d15810d))
|
|
16
|
+
- **vite-config:** add viteBladePlugin for defineBlade macro transform ([adee11c](https://github.com/VirtoCommerce/vc-shell/commit/adee11ca10431eb3f7705fdf4129509f3b7710f7))
|
|
83
17
|
- **vite-config:** env-gate rollup-plugin-visualizer in shared Vite config ([fec0276](https://github.com/VirtoCommerce/vc-shell/commit/fec02761cf27ec379049944c04c19258e8a028a3))
|
|
84
|
-
- **vc-loading:** replace dots loader with bar sweep and add instant preloader ([019e8d6](https://github.com/VirtoCommerce/vc-shell/commit/019e8d6fb5736f766bdba2841c3b5cf7f00b3b77))
|
|
85
18
|
|
|
86
19
|
### Bug Fixes
|
|
87
20
|
|
|
88
|
-
- set circular dependency plugin to warn mode instead of throwing ([69d5cff](https://github.com/VirtoCommerce/vc-shell/commit/69d5cffe8cada7ad3808dc44764df76c9bbe10e7))
|
|
89
21
|
- **build:** suppress empty chunk, mixed import, and date-fns locale warnings ([d973302](https://github.com/VirtoCommerce/vc-shell/commit/d97330264de9f0f03474d919fcee971c6864989c))
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
-
|
|
96
|
-
|
|
97
|
-
## [1.2.4-beta.3](https://github.com/VirtoCommerce/vc-shell/compare/v1.2.4-beta.2...v1.2.4-beta.3) (2026-02-20)
|
|
22
|
+
- **defineBlade:** register blade config at module scope, not setup time ([7d80498](https://github.com/VirtoCommerce/vc-shell/commit/7d804989ac285c1fb2d277e131c7e159292a5f41))
|
|
23
|
+
- pin @module-federation/dts-plugin to 2.0.1 to fix ESM/CJS fs-extra crash ([a41d233](https://github.com/VirtoCommerce/vc-shell/commit/a41d2335761e723eda33b45dbb45ef3e70752bf7))
|
|
24
|
+
- remove duplicate changelog entries caused by multiline regex bug ([2f27d4c](https://github.com/VirtoCommerce/vc-shell/commit/2f27d4c2ca81452ddc1042af47a4648348e7e323))
|
|
25
|
+
- set circular dependency plugin to warn mode instead of throwing ([69d5cff](https://github.com/VirtoCommerce/vc-shell/commit/69d5cffe8cada7ad3808dc44764df76c9bbe10e7))
|
|
26
|
+
- strip shared dep styles from dynamic module builds ([4bb592e](https://github.com/VirtoCommerce/vc-shell/commit/4bb592e5c101bf23259b929b00776144810d182c))
|
|
27
|
+
- topological build order, deprecation fixes, and dependency updates ([bf01eaf](https://github.com/VirtoCommerce/vc-shell/commit/bf01eaf7574eda5ae393941b553cbea5918a768f))
|
|
28
|
+
- **vite-config:** fix named sub-entries for framework path resolution ([2e4cdd1](https://github.com/VirtoCommerce/vc-shell/commit/2e4cdd10d6afc7bef32562715eb89ea7a5a5d307))
|
|
98
29
|
|
|
99
30
|
### Code Refactoring
|
|
100
31
|
|
|
32
|
+
- **cli,configs,packages:** apply ESLint flat config lint fixes ([394d5ca](https://github.com/VirtoCommerce/vc-shell/commit/394d5caa30f07ff8408dead09c998deabe0c163f))
|
|
101
33
|
- configure path aliases and migrate imports ([bfffc3c](https://github.com/VirtoCommerce/vc-shell/commit/bfffc3cbe8029cf875e49941061b582825cad9a6))
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
**
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
**
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
**
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
34
|
+
- dynamically import `rollup-plugin-visualizer` to conditionally load it when analysis is enabled ([57f5182](https://github.com/VirtoCommerce/vc-shell/commit/57f5182496b5d2a9897f6e1f70522177782316c7))
|
|
35
|
+
- enhance framework path resolution and update imports ([fc3a630](https://github.com/VirtoCommerce/vc-shell/commit/fc3a63060571e689c5d1a36f6fd55396f9d1f433))
|
|
36
|
+
- remove unused components and update package resolutions ([26ff398](https://github.com/VirtoCommerce/vc-shell/commit/26ff398739d75b23f7f700542920a117e0022ff3))
|
|
37
|
+
- **vite-config:** remove MF-specific logic, now in @vc-shell/mf-module ([2a5f951](https://github.com/VirtoCommerce/vc-shell/commit/2a5f95141bf32626f1d14e66e29b361f375a09b3))
|
|
38
|
+
|
|
39
|
+
### Styles
|
|
40
|
+
|
|
41
|
+
- **lint:** one-time cleanup of pre-existing violations and tech debt ([a7113c5](https://github.com/VirtoCommerce/vc-shell/commit/a7113c5d25b5b4dc9da20f6bc40c54b57fe46422))
|
|
42
|
+
|
|
43
|
+
### Chores
|
|
44
|
+
|
|
45
|
+
- **release:** v2.0.0-alpha.7 ([adf49e7](https://github.com/VirtoCommerce/vc-shell/commit/adf49e74bd3617d3aa51c9d4db94474294b3b925))
|
|
46
|
+
- remove moment dependency and update bundler configs ([6a83d98](https://github.com/VirtoCommerce/vc-shell/commit/6a83d987fc1d0880da6614330eedc963153323e2))
|
|
47
|
+
- update @module-federation/vite to version 1.12.2 and refactor dynamic module configuration ([912ca95](https://github.com/VirtoCommerce/vc-shell/commit/912ca9547fdd9fb65b0c5a2ffbb012e139706283))
|
|
48
|
+
- update changelogs for multiple packages, including bug fixes and feature enhancements ([72e690f](https://github.com/VirtoCommerce/vc-shell/commit/72e690f5e21aaaf22ce34ff41ec60fb11ed1d018))
|
|
49
|
+
- update dependencies and improve alias configuration ([5ecd1fd](https://github.com/VirtoCommerce/vc-shell/commit/5ecd1fd9e4f5206aa04d11633e4c42442a012b81))
|
|
50
|
+
|
|
51
|
+
### Other Changes
|
|
52
|
+
|
|
53
|
+
- Feat/research (#216) ([f028d9e](https://github.com/VirtoCommerce/vc-shell/commit/f028d9e1fe410a18fec4e127a65860cfb2309e36)), closes [#216](https://github.com/VirtoCommerce/vc-shell/issues/216)
|
|
54
|
+
- Feat/research (#217) ([174beee](https://github.com/VirtoCommerce/vc-shell/commit/174beeef16d0f9c7d6a5b96f0cc375bc50eb06d2)), closes [#217](https://github.com/VirtoCommerce/vc-shell/issues/217)
|
|
55
|
+
- Feat/vc table compositional (#215) ([2194f2f](https://github.com/VirtoCommerce/vc-shell/commit/2194f2fb82009e3dd5f2e17389b7fb03dd74b603)), closes [#215](https://github.com/VirtoCommerce/vc-shell/issues/215)
|
|
56
|
+
- Feat/virto oz (#214) ([21250c9](https://github.com/VirtoCommerce/vc-shell/commit/21250c93ebb2d096b7accdde6b02a73782fc6535)), closes [#214](https://github.com/VirtoCommerce/vc-shell/issues/214)
|
|
57
|
+
|
|
58
|
+
### release
|
|
59
|
+
|
|
60
|
+
- v1.2.3 ([6270dab](https://github.com/VirtoCommerce/vc-shell/commit/6270dab6a5a8149c8380d17d55b77531bad13531))
|
|
61
|
+
- v1.2.4-beta.2 ([d4cf91e](https://github.com/VirtoCommerce/vc-shell/commit/d4cf91ea30b40f13cc7ca13e7d11c8da13459175))
|
|
62
|
+
- v1.2.4-beta.3 ([d42e7a8](https://github.com/VirtoCommerce/vc-shell/commit/d42e7a822a2b2c7a5f89bf83d97babc2e4b3fa07))
|
|
63
|
+
- v1.2.4-beta.4 ([55336cc](https://github.com/VirtoCommerce/vc-shell/commit/55336ccab2cfd7e697fd64e962262359ac9eb37f))
|
|
64
|
+
- v1.2.4-beta.5 ([4cc2527](https://github.com/VirtoCommerce/vc-shell/commit/4cc2527f06178114fd3db9f781b1d6fd868a7a61))
|
|
65
|
+
- v1.2.4-beta.6 ([86734c4](https://github.com/VirtoCommerce/vc-shell/commit/86734c47306da89feb6b16685287744bb2855cc8))
|
|
66
|
+
- v1.2.4-beta.7 ([cc6ef5c](https://github.com/VirtoCommerce/vc-shell/commit/cc6ef5c98d3f8b6489126a950e994335016ea35d))
|
|
67
|
+
- v1.2.4-beta.8 ([25aa324](https://github.com/VirtoCommerce/vc-shell/commit/25aa3246d45b375af4fffcc256a447d05dfda64c))
|
|
68
|
+
- v2.0.0-alpha.10 ([5a9c0af](https://github.com/VirtoCommerce/vc-shell/commit/5a9c0af632a17e2d01dcd0dc07a166aabe6fe903))
|
|
69
|
+
- v2.0.0-alpha.11 ([4e5d63e](https://github.com/VirtoCommerce/vc-shell/commit/4e5d63ee34bb825d8e363e40fbac27e711261f9e))
|
|
70
|
+
- v2.0.0-alpha.12 ([7143a74](https://github.com/VirtoCommerce/vc-shell/commit/7143a74ae0bdd3d70f0133b69d380b82c10526c1))
|
|
71
|
+
- v2.0.0-alpha.13 ([c422678](https://github.com/VirtoCommerce/vc-shell/commit/c42267854f9ed51215e8363165c9bfe077c313a3))
|
|
72
|
+
- v2.0.0-alpha.14 ([0c91031](https://github.com/VirtoCommerce/vc-shell/commit/0c91031706843ccbc2f5d32093c8655c6bbc718f))
|
|
73
|
+
- v2.0.0-alpha.15 ([fa8958e](https://github.com/VirtoCommerce/vc-shell/commit/fa8958e7241117ebff164a2d399f13f74d48b55f))
|
|
74
|
+
- v2.0.0-alpha.16 ([79ab2b1](https://github.com/VirtoCommerce/vc-shell/commit/79ab2b1022258332c327e742ab0adf1b8fde35ce))
|
|
75
|
+
- v2.0.0-alpha.17 ([408e4af](https://github.com/VirtoCommerce/vc-shell/commit/408e4af487f37b8aff790398d5a992820c8f05a2))
|
|
76
|
+
- v2.0.0-alpha.18 ([2466e35](https://github.com/VirtoCommerce/vc-shell/commit/2466e359313c9d78893d2473474ec5ce46ad49ca))
|
|
77
|
+
- v2.0.0-alpha.19 ([9d5a075](https://github.com/VirtoCommerce/vc-shell/commit/9d5a075e0a722c6c7371706f582b59bbf570ef37))
|
|
78
|
+
- v2.0.0-alpha.2 ([223c859](https://github.com/VirtoCommerce/vc-shell/commit/223c8596dbad42704072ffc0dd1c4b8361227af0))
|
|
79
|
+
- v2.0.0-alpha.20 ([98bd4a6](https://github.com/VirtoCommerce/vc-shell/commit/98bd4a62ffa933bbfdae16ef7e46777084f15190))
|
|
80
|
+
- v2.0.0-alpha.21 ([bbd0d70](https://github.com/VirtoCommerce/vc-shell/commit/bbd0d70464ff5c0dafbc67ed3bf8ea36f65b0a7a))
|
|
81
|
+
- v2.0.0-alpha.22 ([ec455eb](https://github.com/VirtoCommerce/vc-shell/commit/ec455eba6bb91ae5fdbea64817ce1650116b9d50))
|
|
82
|
+
- v2.0.0-alpha.23 ([65b2144](https://github.com/VirtoCommerce/vc-shell/commit/65b214434ef1630069aecd6f2eaf916531bf37ef))
|
|
83
|
+
- v2.0.0-alpha.24 ([05ff510](https://github.com/VirtoCommerce/vc-shell/commit/05ff5107b81e0280447872ea52771fc47cb3cd67))
|
|
84
|
+
- v2.0.0-alpha.25 ([19d09b9](https://github.com/VirtoCommerce/vc-shell/commit/19d09b998861836b288aba36a6d18d7b26cff0b7))
|
|
85
|
+
- v2.0.0-alpha.26 ([ee6818c](https://github.com/VirtoCommerce/vc-shell/commit/ee6818ceb60b24d26b7011f2584c8d23f6b4fd3e))
|
|
86
|
+
- v2.0.0-alpha.27 ([f43652d](https://github.com/VirtoCommerce/vc-shell/commit/f43652d1aae8af36d5d2f00312492ea9de57f2f1))
|
|
87
|
+
- v2.0.0-alpha.28 ([7954dfd](https://github.com/VirtoCommerce/vc-shell/commit/7954dfddf1126d00038b8f66a6fe3efc5c19cfe8))
|
|
88
|
+
- v2.0.0-alpha.29 ([ffa72cf](https://github.com/VirtoCommerce/vc-shell/commit/ffa72cf458eed77c78955c88d211a82ead152b0f))
|
|
89
|
+
- v2.0.0-alpha.3 ([23e82c2](https://github.com/VirtoCommerce/vc-shell/commit/23e82c2423efb5cddf8ea891ea5d5e84832a6acd))
|
|
90
|
+
- v2.0.0-alpha.30 ([2db7f17](https://github.com/VirtoCommerce/vc-shell/commit/2db7f17d74afe97e3c6dfef2de436a797f0c32f4))
|
|
91
|
+
- v2.0.0-alpha.31 ([8d92fba](https://github.com/VirtoCommerce/vc-shell/commit/8d92fbad5954c71164e7815193b3496e569a5703))
|
|
92
|
+
- v2.0.0-alpha.32 ([1ed5533](https://github.com/VirtoCommerce/vc-shell/commit/1ed5533a6a20081e655f2e628bf824de40472f5d))
|
|
93
|
+
- v2.0.0-alpha.33 ([49cad36](https://github.com/VirtoCommerce/vc-shell/commit/49cad36a454534136b52576e6a0d97dfe48ae895))
|
|
94
|
+
- v2.0.0-alpha.34 ([78bed5a](https://github.com/VirtoCommerce/vc-shell/commit/78bed5af3aeb7ace2eb9f58ddde3235fced47b37))
|
|
95
|
+
- v2.0.0-alpha.35 ([05d6f25](https://github.com/VirtoCommerce/vc-shell/commit/05d6f2562c939dd4a2e7e4e7a3d80948beccbef1))
|
|
96
|
+
- v2.0.0-alpha.4 ([a3098f9](https://github.com/VirtoCommerce/vc-shell/commit/a3098f9ccc128c4ad3b4d8b5cbcbf8ea7a0f6df5))
|
|
97
|
+
- v2.0.0-alpha.5 ([3cae61a](https://github.com/VirtoCommerce/vc-shell/commit/3cae61a852a8f88aac8e0c51affad4517c8c5eca))
|
|
98
|
+
- v2.0.0-alpha.6 ([9196b2c](https://github.com/VirtoCommerce/vc-shell/commit/9196b2c232094d8d7750963718777096c0cc9864))
|
|
99
|
+
- v2.0.0-alpha.8 ([8228f12](https://github.com/VirtoCommerce/vc-shell/commit/8228f12bffc014ae0f8f28b3ef3fa0ac02bc33e2))
|
|
100
|
+
- v2.0.0-alpha.9 ([ef631bd](https://github.com/VirtoCommerce/vc-shell/commit/ef631bdbccbf2be1afbc592418e680e79d2c1fbe))
|
|
118
101
|
|
|
119
102
|
## [1.2.3](https://github.com/VirtoCommerce/vc-shell/compare/v1.2.2...v1.2.3) (2026-01-12)
|
|
120
103
|
|
|
@@ -124,60 +107,6 @@
|
|
|
124
107
|
|
|
125
108
|
**Note:** Version bump only for package @vc-shell/config-generator
|
|
126
109
|
|
|
127
|
-
## [1.2.3-beta.0](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.14...v1.2.3-beta.0) (2025-12-26)
|
|
128
|
-
|
|
129
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
130
|
-
|
|
131
|
-
## [1.1.99-alpha.14](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.13...v1.1.99-alpha.14) (2025-11-27)
|
|
132
|
-
|
|
133
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
134
|
-
|
|
135
|
-
## [1.1.99-alpha.13](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.12...v1.1.99-alpha.13) (2025-11-27)
|
|
136
|
-
|
|
137
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
138
|
-
|
|
139
|
-
## [1.1.99-alpha.12](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.11...v1.1.99-alpha.12) (2025-11-27)
|
|
140
|
-
|
|
141
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
142
|
-
|
|
143
|
-
## [1.1.99-alpha.11](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.10...v1.1.99-alpha.11) (2025-11-27)
|
|
144
|
-
|
|
145
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
146
|
-
|
|
147
|
-
## [1.1.99-alpha.10](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.9...v1.1.99-alpha.10) (2025-11-27)
|
|
148
|
-
|
|
149
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
150
|
-
|
|
151
|
-
## [1.1.99-alpha.9](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.8...v1.1.99-alpha.9) (2025-11-26)
|
|
152
|
-
|
|
153
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
154
|
-
|
|
155
|
-
## [1.1.99-alpha.8](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.7...v1.1.99-alpha.8) (2025-11-25)
|
|
156
|
-
|
|
157
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
158
|
-
|
|
159
|
-
## [1.1.99-alpha.7](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.6...v1.1.99-alpha.7) (2025-11-25)
|
|
160
|
-
|
|
161
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
162
|
-
|
|
163
|
-
## [1.1.99-alpha.6](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.5...v1.1.99-alpha.6) (2025-11-25)
|
|
164
|
-
|
|
165
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
166
|
-
|
|
167
|
-
## [1.1.99-alpha.5](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.4...v1.1.99-alpha.5) (2025-11-25)
|
|
168
|
-
|
|
169
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
170
|
-
|
|
171
|
-
## [1.1.99-alpha.4](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.3...v1.1.99-alpha.4) (2025-11-25)
|
|
172
|
-
|
|
173
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
174
|
-
|
|
175
|
-
## [1.1.99-alpha.3](https://github.com/VirtoCommerce/vc-shell/compare/v1.2.1...v1.1.99-alpha.3) (2025-11-25)
|
|
176
|
-
|
|
177
|
-
### Features
|
|
178
|
-
|
|
179
|
-
- update auth providers and fix tsx path in pre-commit hook ([a92d957](https://github.com/VirtoCommerce/vc-shell/commit/a92d957e2b0a0be177519e7256af9279d3419713))
|
|
180
|
-
|
|
181
110
|
## [1.2.1](https://github.com/VirtoCommerce/vc-shell/compare/v1.2.0...v1.2.1) (2025-11-13)
|
|
182
111
|
|
|
183
112
|
**Note:** Version bump only for package @vc-shell/config-generator
|
|
@@ -186,44 +115,6 @@
|
|
|
186
115
|
|
|
187
116
|
**Note:** Version bump only for package @vc-shell/config-generator
|
|
188
117
|
|
|
189
|
-
## [1.1.99-alpha.2](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.1...v1.1.99-alpha.2) (2025-11-07)
|
|
190
|
-
|
|
191
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
192
|
-
|
|
193
|
-
## [1.1.99-alpha.1](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.99-alpha.0...v1.1.99-alpha.1) (2025-11-07)
|
|
194
|
-
|
|
195
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
196
|
-
|
|
197
|
-
## [1.1.99-alpha.0](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.98-rc.5...v1.1.99-alpha.0) (2025-11-07)
|
|
198
|
-
|
|
199
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
200
|
-
|
|
201
|
-
## [1.1.98-rc.5](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.98-rc.4...v1.1.98-rc.5) (2025-11-07)
|
|
202
|
-
|
|
203
|
-
### Features
|
|
204
|
-
|
|
205
|
-
- update auth providers and fix tsx path in pre-commit hook ([a92d957](https://github.com/VirtoCommerce/vc-shell/commit/a92d957e2b0a0be177519e7256af9279d3419713))
|
|
206
|
-
|
|
207
|
-
## [1.1.98-rc.4](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.98-rc.3...v1.1.98-rc.4) (2025-10-24)
|
|
208
|
-
|
|
209
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
210
|
-
|
|
211
|
-
## [1.1.98-rc.3](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.98-rc.2...v1.1.98-rc.3) (2025-10-24)
|
|
212
|
-
|
|
213
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
214
|
-
|
|
215
|
-
## [1.1.98-rc.2](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.98-rc.1...v1.1.98-rc.2) (2025-10-24)
|
|
216
|
-
|
|
217
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
218
|
-
|
|
219
|
-
## [1.1.98-rc.1](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.98-rc.0...v1.1.98-rc.1) (2025-10-24)
|
|
220
|
-
|
|
221
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
222
|
-
|
|
223
|
-
## [1.1.98-rc.0](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.97...v1.1.98-rc.0) (2025-10-24)
|
|
224
|
-
|
|
225
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
226
|
-
|
|
227
118
|
## [1.1.97](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.96...v1.1.97) (2025-10-24)
|
|
228
119
|
|
|
229
120
|
**Note:** Version bump only for package @vc-shell/config-generator
|
|
@@ -256,28 +147,6 @@
|
|
|
256
147
|
|
|
257
148
|
- **vite-config:** update vue-router path resolution to use absolute path from node_modules ([5418c14](https://github.com/VirtoCommerce/vc-shell/commit/5418c142daa1e9940a0a9a670b3f66f085165e03))
|
|
258
149
|
|
|
259
|
-
## [1.1.91-alpha.5](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.91-alpha.4...v1.1.91-alpha.5) (2025-10-14)
|
|
260
|
-
|
|
261
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
262
|
-
|
|
263
|
-
## [1.1.91-alpha.4](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.91-alpha.3...v1.1.91-alpha.4) (2025-10-14)
|
|
264
|
-
|
|
265
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
266
|
-
|
|
267
|
-
## [1.1.91-alpha.3](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.91-alpha.2...v1.1.91-alpha.3) (2025-10-14)
|
|
268
|
-
|
|
269
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
270
|
-
|
|
271
|
-
## [1.1.91-alpha.2](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.91-alpha.1...v1.1.91-alpha.2) (2025-10-14)
|
|
272
|
-
|
|
273
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
274
|
-
|
|
275
|
-
## [1.1.91-alpha.1](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.90...v1.1.91-alpha.1) (2025-10-14)
|
|
276
|
-
|
|
277
|
-
### Features
|
|
278
|
-
|
|
279
|
-
- update auth providers and fix tsx path in pre-commit hook ([a92d957](https://github.com/VirtoCommerce/vc-shell/commit/a92d957e2b0a0be177519e7256af9279d3419713))
|
|
280
|
-
|
|
281
150
|
## [1.1.90](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.89...v1.1.90) (2025-10-08)
|
|
282
151
|
|
|
283
152
|
**Note:** Version bump only for package @vc-shell/config-generator
|
|
@@ -306,18 +175,10 @@
|
|
|
306
175
|
|
|
307
176
|
**Note:** Version bump only for package @vc-shell/config-generator
|
|
308
177
|
|
|
309
|
-
## [1.1.84-alpha.0](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.83...v1.1.84-alpha.0) (2025-09-30)
|
|
310
|
-
|
|
311
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
312
|
-
|
|
313
178
|
## [1.1.83](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.83-alpha.0...v1.1.83) (2025-09-30)
|
|
314
179
|
|
|
315
180
|
**Note:** Version bump only for package @vc-shell/config-generator
|
|
316
181
|
|
|
317
|
-
## [1.1.83-alpha.0](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.82...v1.1.83-alpha.0) (2025-09-24)
|
|
318
|
-
|
|
319
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
320
|
-
|
|
321
182
|
## [1.1.82](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.81...v1.1.82) (2025-09-23)
|
|
322
183
|
|
|
323
184
|
**Note:** Version bump only for package @vc-shell/config-generator
|
|
@@ -708,12 +569,6 @@
|
|
|
708
569
|
|
|
709
570
|
**Note:** Version bump only for package @vc-shell/config-generator
|
|
710
571
|
|
|
711
|
-
## [1.1.0-alpha.2](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.340...v1.1.0-alpha.2) (2025-02-25)
|
|
712
|
-
|
|
713
|
-
### Features
|
|
714
|
-
|
|
715
|
-
- partial redesign ([846e215](https://github.com/VirtoCommerce/vc-shell/commit/846e2152c6e48753622ca7cf3a71300323c99d51))
|
|
716
|
-
|
|
717
572
|
## [1.0.340](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.339...v1.0.340) (2025-02-06)
|
|
718
573
|
|
|
719
574
|
**Note:** Version bump only for package @vc-shell/config-generator
|
|
@@ -766,10 +621,6 @@
|
|
|
766
621
|
|
|
767
622
|
**Note:** Version bump only for package @vc-shell/config-generator
|
|
768
623
|
|
|
769
|
-
## [1.1.0-alpha.1](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.327...v1.1.0-alpha.1) (2024-11-13)
|
|
770
|
-
|
|
771
|
-
**Note:** Version bump only for package @vc-shell/config-generator
|
|
772
|
-
|
|
773
624
|
## [1.0.327](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.326...v1.0.327) (2024-11-12)
|
|
774
625
|
|
|
775
626
|
**Note:** Version bump only for package @vc-shell/config-generator
|
package/README.md
CHANGED
|
@@ -29,10 +29,7 @@ Adds Module Federation to a host application. Merge with your application config
|
|
|
29
29
|
import { getApplicationConfiguration, getHostFederationConfig } from "@vc-shell/config-generator";
|
|
30
30
|
import { mergeConfig } from "vite";
|
|
31
31
|
|
|
32
|
-
export default mergeConfig(
|
|
33
|
-
getApplicationConfiguration(),
|
|
34
|
-
getHostFederationConfig(),
|
|
35
|
-
);
|
|
32
|
+
export default mergeConfig(getApplicationConfiguration(), getHostFederationConfig());
|
|
36
33
|
```
|
|
37
34
|
|
|
38
35
|
Custom shared dependencies:
|
|
@@ -58,12 +55,12 @@ export default getDynamicModuleConfiguration({
|
|
|
58
55
|
});
|
|
59
56
|
```
|
|
60
57
|
|
|
61
|
-
| Option
|
|
62
|
-
|
|
63
|
-
| `entry`
|
|
64
|
-
| `exposes`
|
|
65
|
-
| `compatibility.framework` | `string`
|
|
66
|
-
| `compatibility.modules`
|
|
58
|
+
| Option | Type | Default | Description |
|
|
59
|
+
| ------------------------- | ------------------------ | -------------------------- | --------------------------------- |
|
|
60
|
+
| `entry` | `string` | `"./src/modules/index.ts"` | Module entry point |
|
|
61
|
+
| `exposes` | `Record<string, string>` | `{ "./module": entry }` | MF exposes map |
|
|
62
|
+
| `compatibility.framework` | `string` | -- | Compatible framework semver range |
|
|
63
|
+
| `compatibility.modules` | `Record<string, string>` | -- | Compatible module version ranges |
|
|
67
64
|
|
|
68
65
|
The module produces a `remoteEntry.js` file that the host loads at runtime.
|
|
69
66
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,32 +1,9 @@
|
|
|
1
1
|
import { UserConfig } from "vite";
|
|
2
2
|
import type { ModulesLibraryOptions } from "./templates/vite.modules-library.appconfig.js";
|
|
3
|
-
import { DynamicModuleOptions } from "./types.js";
|
|
4
3
|
declare function getLibraryConfiguration(options?: UserConfig): Record<string, any>;
|
|
5
4
|
declare function getApplicationConfiguration(options?: UserConfig): Record<string, any>;
|
|
6
|
-
/**
|
|
7
|
-
* Generate a Vite configuration for a dynamic module
|
|
8
|
-
*
|
|
9
|
-
* @param options - Custom configuration options
|
|
10
|
-
* @returns Vite configuration
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```js
|
|
14
|
-
* // vite.config.js
|
|
15
|
-
* import { getDynamicModuleConfiguration } from '@vc-shell/dynamic-modules-config';
|
|
16
|
-
*
|
|
17
|
-
* export default getDynamicModuleConfiguration({
|
|
18
|
-
* // Custom configuration options
|
|
19
|
-
* compatibility: {
|
|
20
|
-
* framework: '^1.1.0',
|
|
21
|
-
* }
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
declare function getDynamicModuleConfiguration(options: DynamicModuleOptions): Promise<Record<string, any>>;
|
|
26
5
|
declare function getModulesLibraryConfiguration(options?: ModulesLibraryOptions): Record<string, any>;
|
|
27
|
-
export type { DynamicModuleOptions, CompatibilityOptions } from "./types.js";
|
|
28
6
|
export type { ModulesLibraryOptions } from "./templates/vite.modules-library.appconfig.js";
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
export { getLibraryConfiguration, getApplicationConfiguration, getDynamicModuleConfiguration, getModulesLibraryConfiguration, getHostFederationConfig };
|
|
7
|
+
export { getLibraryConfiguration, getApplicationConfiguration, getModulesLibraryConfiguration };
|
|
8
|
+
export { viteBladePlugin } from "./plugins/viteBladePlugin.js";
|
|
32
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,UAAU,EAAgB,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,UAAU,EAAgB,MAAM,MAAM,CAAC;AAG7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAMnG,iBAAS,uBAAuB,CAAC,OAAO,GAAE,UAAe,uBAGxD;AAED,iBAAS,2BAA2B,CAAC,OAAO,GAAE,UAAe,uBAG5D;AA0CD,iBAAS,8BAA8B,CAAC,OAAO,GAAE,qBAA0B,uBAI1E;AAED,YAAY,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAEnG,OAAO,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,6 @@ import applicationConfiguration from "./templates/vite.application.appconfig.js"
|
|
|
2
2
|
import libraryConfiguration from "./templates/vite.library.appconfig.js";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import { mergeConfig } from "vite";
|
|
5
|
-
import { readFileSync } from "node:fs";
|
|
6
|
-
import { join } from "node:path";
|
|
7
5
|
import { cwd } from "node:process";
|
|
8
6
|
import modulesLibraryConfiguration from "./templates/vite.modules-library.appconfig.js";
|
|
9
7
|
const packageJson = fs.readFileSync(cwd() + "/package.json");
|
|
@@ -48,54 +46,11 @@ function toAliasArray(alias) {
|
|
|
48
46
|
}
|
|
49
47
|
return Object.entries(alias).map(([find, replacement]) => ({ find, replacement }));
|
|
50
48
|
}
|
|
51
|
-
// Get package.json from current working directory
|
|
52
|
-
const getPackageJson = () => {
|
|
53
|
-
try {
|
|
54
|
-
const packageJsonPath = join(cwd(), "package.json");
|
|
55
|
-
return JSON.parse(readFileSync(packageJsonPath, "utf-8"));
|
|
56
|
-
}
|
|
57
|
-
catch (error) {
|
|
58
|
-
console.error("Error reading package.json:", error);
|
|
59
|
-
return { name: "unknown-module", version: "0.0.0", dependencies: {} };
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Generate a Vite configuration for a dynamic module
|
|
64
|
-
*
|
|
65
|
-
* @param options - Custom configuration options
|
|
66
|
-
* @returns Vite configuration
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```js
|
|
70
|
-
* // vite.config.js
|
|
71
|
-
* import { getDynamicModuleConfiguration } from '@vc-shell/dynamic-modules-config';
|
|
72
|
-
*
|
|
73
|
-
* export default getDynamicModuleConfiguration({
|
|
74
|
-
* // Custom configuration options
|
|
75
|
-
* compatibility: {
|
|
76
|
-
* framework: '^1.1.0',
|
|
77
|
-
* }
|
|
78
|
-
* });
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
async function getDynamicModuleConfiguration(options) {
|
|
82
|
-
console.log(`Building dynamic module with options:`, options);
|
|
83
|
-
const pkg = getPackageJson();
|
|
84
|
-
const name = pkg.name;
|
|
85
|
-
const version = pkg.version;
|
|
86
|
-
console.log(`Module: ${name}@${version}`);
|
|
87
|
-
const { default: dynamicModuleConfiguration } = await import("./templates/vite.dynamic-module.appconfig.js");
|
|
88
|
-
const baseConfig = dynamicModuleConfiguration(pkg, options);
|
|
89
|
-
return mergeConfig(baseConfig, options);
|
|
90
|
-
}
|
|
91
49
|
function getModulesLibraryConfiguration(options = {}) {
|
|
92
50
|
console.log(`Building modules library ${name} v.${version} ...`);
|
|
93
51
|
const baseConfig = modulesLibraryConfiguration(options);
|
|
94
52
|
return mergeConfig(baseConfig, options);
|
|
95
53
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
return fn(...args);
|
|
99
|
-
}
|
|
100
|
-
export { getLibraryConfiguration, getApplicationConfiguration, getDynamicModuleConfiguration, getModulesLibraryConfiguration, getHostFederationConfig };
|
|
54
|
+
export { getLibraryConfiguration, getApplicationConfiguration, getModulesLibraryConfiguration };
|
|
55
|
+
export { viteBladePlugin } from "./plugins/viteBladePlugin.js";
|
|
101
56
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,MAAM,mDAAmD,CAAC;AACzF,OAAO,oBAAoB,MAAM,+CAA+C,CAAC;AACjF,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,WAAW,EAA4B,MAAM,MAAM,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Plugin } from "vite";
|
|
2
|
+
interface TransformResult {
|
|
3
|
+
code: string;
|
|
4
|
+
map: null;
|
|
5
|
+
}
|
|
6
|
+
export declare function transformDefineBlade(code: string, id: string, onLegacyWarning?: (message: string) => void): TransformResult | null;
|
|
7
|
+
export declare function viteBladePlugin(): Plugin;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=viteBladePlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viteBladePlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/viteBladePlugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAKnC,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,IAAI,CAAC;CACX;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC1C,eAAe,GAAG,IAAI,CAoGxB;AAED,wBAAgB,eAAe,IAAI,MAAM,CAWxC"}
|