File tree Expand file tree Collapse file tree 11 files changed +206
-148
lines changed Expand file tree Collapse file tree 11 files changed +206
-148
lines changed Original file line number Diff line number Diff line change 1
1
import { type SVGProps } from 'react'
2
2
import { cn } from '#app/utils/misc.tsx'
3
+ //@ts -ignore
3
4
import href from './icons/sprite.svg'
4
5
import { type IconName } from '@/icon-name'
5
6
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ import {
11
11
} from 'react-router'
12
12
import { HoneypotProvider } from 'remix-utils/honeypot/react'
13
13
import { type Route } from './+types/root.ts'
14
+ //@ts -ignore
14
15
import appleTouchIconAssetUrl from './assets/favicons/apple-touch-icon.png'
16
+ //@ts -ignore
15
17
import faviconAssetUrl from './assets/favicons/favicon.svg'
16
18
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
17
19
import { EpicProgress } from './components/progress-bar.tsx'
Original file line number Diff line number Diff line change
1
+ //@ts -nocheck
2
+
1
3
import docker from './docker.svg'
2
4
import eslint from './eslint.svg'
3
5
import fakerJS from './faker.svg'
Original file line number Diff line number Diff line change
1
+ //@ts -nocheck
1
2
/**
2
3
* @vitest -environment jsdom
3
4
*/
Original file line number Diff line number Diff line change 49
49
"@epic-web/remember" : " 1.1.0" ,
50
50
"@epic-web/totp" : " 2.1.1" ,
51
51
"@mjackson/form-data-parser" : " 0.7.0" ,
52
- "@module-federation/enhanced" : " 0.0.0-next-20250321011937 " ,
53
- "@module-federation/node" : " 0.0.0-next-20250321011937 " ,
54
- "@module-federation/rsbuild-plugin" : " 0.0.0-next-20250321011937 " ,
52
+ "@module-federation/enhanced" : " 0.0.0-next-20250325035711 " ,
53
+ "@module-federation/node" : " 0.0.0-next-20250325035711 " ,
54
+ "@module-federation/rsbuild-plugin" : " 0.0.0-next-20250325035711 " ,
55
55
"@nasa-gcn/remix-seo" : " 2.0.1" ,
56
56
"@oslojs/crypto" : " 1.0.1" ,
57
57
"@oslojs/encoding" : " 1.1.0" ,
170
170
},
171
171
"prisma" : {
172
172
"seed" : " tsx prisma/seed.ts"
173
+ },
174
+ "vitest" : {
175
+ "setupFiles" : [" ./vitest.setup.ts" ]
173
176
}
174
177
}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const exposedComponents = {
59
59
"./utils/connections" : "./app/utils/connections" ,
60
60
"./utils/misc" : "./app/utils/misc" ,
61
61
"./routes/login" : "./app/routes/_auth+/login?react-router-route" ,
62
- "./routes/login.server" : "./app/routes/_auth+/login.server"
62
+ "./routes/login.server" : "./app/routes/_auth+/login.server.ts "
63
63
}
64
64
65
65
// Filter out .server exposes for web environment
@@ -73,7 +73,8 @@ const commonFederationConfig = {
73
73
shareStrategy : "loaded-first" as const ,
74
74
runtime : undefined ,
75
75
exposes : exposedComponents ,
76
- shared : sharedDependencies
76
+ shared : sharedDependencies ,
77
+ dts : false
77
78
}
78
79
79
80
// Web-specific federation config
@@ -96,7 +97,7 @@ const nodeFederationConfig = {
96
97
] ,
97
98
// see https://github.com/module-federation/core/blob/main/packages/manifest/src/ManifestManager.ts#L106
98
99
manifest :{
99
- additionalData :( additionalDataOptions ) => {
100
+ additionalData :( additionalDataOptions : { stats : any } ) => {
100
101
const { stats, } = additionalDataOptions ;
101
102
stats . metaData . ssrRemoteEntry = stats . metaData . remoteEntry ;
102
103
return stats ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export default {
20
20
presets : [ marketingPreset ] ,
21
21
plugins : [ animatePlugin , radixPlugin ] ,
22
22
safelist : [
23
- // Match everything
24
- / . * /
23
+ // Using string pattern to match everything instead of RegExp
24
+ '*'
25
25
] ,
26
26
} satisfies Config
Original file line number Diff line number Diff line change 49
49
"@epic-web/remember" : " 1.1.0" ,
50
50
"@epic-web/totp" : " 2.1.1" ,
51
51
"@mjackson/form-data-parser" : " 0.7.0" ,
52
- "@module-federation/enhanced" : " 0.0.0-next-20250321011937 " ,
53
- "@module-federation/node" : " 0.0.0-next-20250321011937 " ,
54
- "@module-federation/rsbuild-plugin" : " 0.0.0-next-20250321011937 " ,
52
+ "@module-federation/enhanced" : " 0.0.0-next-20250325035711 " ,
53
+ "@module-federation/node" : " 0.0.0-next-20250325035711 " ,
54
+ "@module-federation/rsbuild-plugin" : " 0.0.0-next-20250325035711 " ,
55
55
"@nasa-gcn/remix-seo" : " 2.0.1" ,
56
56
"@oslojs/crypto" : " 1.0.1" ,
57
57
"@oslojs/encoding" : " 1.1.0" ,
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ const sharedDependencies = {
37
37
const commonFederationConfig = {
38
38
name : 'host' ,
39
39
shareStrategy : "loaded-first" as const ,
40
- shared : sharedDependencies
40
+ shared : sharedDependencies ,
41
+ dts : false
41
42
}
42
43
43
44
// Web-specific federation config
@@ -52,7 +53,6 @@ const webFederationConfig = {
52
53
// Node-specific federation config
53
54
const nodeFederationConfig = {
54
55
...commonFederationConfig ,
55
- dts : false ,
56
56
remotes : {
57
57
remote : 'remote@http://localhost:3001/static/static/js/remote.js' ,
58
58
} ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default {
19
19
} ,
20
20
safelist : [
21
21
// Match everything
22
- / . * /
22
+ "*"
23
23
] ,
24
24
presets : [ marketingPreset ] ,
25
25
plugins : [ animatePlugin , radixPlugin ] ,
You can’t perform that action at this time.
0 commit comments