@@ -53,44 +53,6 @@ const common = ({ mode, variant }) => {
5353 optimization : {
5454 splitChunks : {
5555 cacheGroups : {
56- // Component-specific chunks
57- signUp : {
58- test : / [ \\ / ] s r c [ \\ / ] c o m p o n e n t s [ \\ / ] S i g n U p [ \\ / ] / ,
59- name : 'signup' ,
60- chunks : 'all' ,
61- priority : 10 ,
62- } ,
63- signIn : {
64- test : / [ \\ / ] s r c [ \\ / ] c o m p o n e n t s [ \\ / ] S i g n I n [ \\ / ] / ,
65- name : 'signin' ,
66- chunks : 'all' ,
67- priority : 10 ,
68- } ,
69- userProfile : {
70- test : / [ \\ / ] s r c [ \\ / ] c o m p o n e n t s [ \\ / ] U s e r P r o f i l e [ \\ / ] / ,
71- name : 'user-profile' ,
72- chunks : 'all' ,
73- priority : 10 ,
74- } ,
75- organizationProfile : {
76- test : / [ \\ / ] s r c [ \\ / ] c o m p o n e n t s [ \\ / ] O r g a n i z a t i o n P r o f i l e [ \\ / ] / ,
77- name : 'organization-profile' ,
78- chunks : 'all' ,
79- priority : 10 ,
80- } ,
81- userButton : {
82- test : / [ \\ / ] s r c [ \\ / ] c o m p o n e n t s [ \\ / ] U s e r B u t t o n [ \\ / ] / ,
83- name : 'user-button' ,
84- chunks : 'all' ,
85- priority : 10 ,
86- } ,
87- organizationSwitcher : {
88- test : / [ \\ / ] s r c [ \\ / ] c o m p o n e n t s [ \\ / ] O r g a n i z a t i o n S w i t c h e r [ \\ / ] / ,
89- name : 'organization-switcher' ,
90- chunks : 'all' ,
91- priority : 10 ,
92- } ,
93- // Vendor chunks
9456 zxcvbnTSCoreVendor : {
9557 test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( @ z x c v b n - t s \/ c o r e | f a s t e s t - l e v e n s h t e i n ) [ \\ / ] / ,
9658 name : 'zxcvbn-ts-core' ,
@@ -101,21 +63,35 @@ const common = ({ mode, variant }) => {
10163 name : 'zxcvbn-common' ,
10264 chunks : 'all' ,
10365 } ,
104- emotionVendor : {
105- test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( @ e m o t i o n ) [ \\ / ] / ,
106- name : 'emotion-vendor ' ,
66+ baseAccountSDKVendor : {
67+ test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( @ b a s e - o r g \/ a c c o u n t | @ n o b l e \/ c u r v e s | a b i t y p e | o x | p r e a c t | e v e n t e m i t t e r 3 | v i e m | z u s t a n d ) [ \\ / ] / ,
68+ name : 'base-account-sdk ' ,
10769 chunks : 'all' ,
108- priority : 20 ,
10970 } ,
110- floatingUIVendor : {
111- test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( @ f l o a t i n g - u i ) [ \\ / ] / ,
112- name : 'floating-ui-vendor ' ,
71+ coinbaseWalletSDKVendor : {
72+ test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( @ c o i n b a s e \/ w a l l e t - s d k | p r e a c t | e v e n t e m i t t e r 3 | @ n o b l e \/ h a s h e s ) [ \\ / ] / ,
73+ name : 'coinbase-wallet-sdk ' ,
11374 chunks : 'all' ,
11475 } ,
11576 stripeVendor : {
116- test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( @ s t r i p e ) [ \\ / ] / ,
117- name : 'stripe-vendor ' ,
77+ test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( @ s t r i p e \/ s t r i p e - j s ) [ \\ / ] / ,
78+ name : 'stripe-vendors ' ,
11879 chunks : 'all' ,
80+ enforce : true ,
81+ } ,
82+ /**
83+ * Sign up is shared between the SignUp component and the SignIn component.
84+ */
85+ signUp : {
86+ minChunks : 1 ,
87+ name : 'signup' ,
88+ test : module => ! ! ( module . resource && module . resource . includes ( '/ui/components/SignUp' ) ) ,
89+ } ,
90+ common : {
91+ minChunks : 1 ,
92+ name : 'ui-common' ,
93+ priority : - 20 ,
94+ test : module => ! ! ( module . resource && ! module . resource . includes ( '/ui/components' ) ) ,
11995 } ,
12096 defaultVendors : {
12197 minChunks : 1 ,
@@ -125,7 +101,7 @@ const common = ({ mode, variant }) => {
125101 } ,
126102 react : {
127103 chunks : 'all' ,
128- test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( r e a c t | r e a c t - d o m | s c h e d u l e r ) [ \\ / ] / ,
104+ test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( r e a c t - d o m | s c h e d u l e r ) [ \\ / ] / ,
129105 name : 'framework' ,
130106 priority : 40 ,
131107 enforce : true ,
@@ -288,7 +264,7 @@ const devConfig = (mode, env) => {
288264 // devtool: 'eval-cheap-source-map',
289265 devtool : false ,
290266 output : {
291- publicPath : `${ devUrl . origin } /npm` ,
267+ publicPath : `${ devUrl . origin } /npm/ ` ,
292268 crossOriginLoading : 'anonymous' ,
293269 filename : `[name].js` ,
294270 libraryTarget : 'umd' ,
0 commit comments