@s-ui/bundler 8.0.0-beta.0 → 8.0.0-beta.1

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.
@@ -1,31 +0,0 @@
1
- const {config} = require('./')
2
-
3
- const hasToSplitFrameworksOnChunk =
4
- config.optimizations && config.optimizations.splitFrameworkOnChunk
5
-
6
- const frameworkSplitChunk = {
7
- framework: {
8
- chunks: 'all',
9
- name: 'framework',
10
- // This regex ignores nested copies of framework libraries so they're
11
- // bundled with their issuer: https://github.com/vercel/next.js/pull/9012
12
- test: /(?<!node_modules.*)[\\/]node_modules[\\/](react|react-dom|scheduler|prop-types|use-subscription)[\\/]/,
13
- priority: 40,
14
- // Don't let webpack eliminate this chunk (prevents this chunk from
15
- // becoming a part of the commons chunk)
16
- enforce: true
17
- }
18
- }
19
-
20
- exports.splitChunks = {
21
- cacheGroups: {
22
- ...(hasToSplitFrameworksOnChunk && frameworkSplitChunk),
23
- vendor: {
24
- chunks: 'all',
25
- name: 'vendor',
26
- test: 'vendor',
27
- enforce: true,
28
- reuseExistingChunk: true
29
- }
30
- }
31
- }