frontend-hamroun 1.2.8 → 1.2.10

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.
@@ -13,7 +13,13 @@
13
13
  "strict": true,
14
14
  "noUnusedLocals": true,
15
15
  "noUnusedParameters": true,
16
- "noFallthroughCasesInSwitch": true
16
+ "noFallthroughCasesInSwitch": true,
17
+ "paths": {
18
+ "react": ["./node_modules/frontend-hamroun"],
19
+ "react-dom": ["./node_modules/frontend-hamroun"],
20
+ "react/jsx-runtime": ["./node_modules/frontend-hamroun"],
21
+ "react/jsx-dev-runtime": ["./node_modules/frontend-hamroun"]
22
+ }
17
23
  },
18
24
  "include": ["src"],
19
25
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -0,0 +1,10 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "skipLibCheck": true,
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler",
7
+ "allowSyntheticDefaultImports": true
8
+ },
9
+ "include": ["vite.config.ts"]
10
+ }
@@ -8,6 +8,10 @@ export default defineConfig({
8
8
  rollupOptions: {
9
9
  // Mark server-side dependencies as external
10
10
  external: [
11
+ 'react',
12
+ 'react-dom',
13
+ 'react/jsx-runtime',
14
+ 'react/jsx-dev-runtime',
11
15
  'express',
12
16
  'compression',
13
17
  'helmet',
@@ -42,7 +46,12 @@ export default defineConfig({
42
46
  // Remove any Node.js specific imports that might cause issues
43
47
  'bcrypt': 'frontend-hamroun',
44
48
  'jsonwebtoken': 'frontend-hamroun',
45
- 'mongoose': 'frontend-hamroun'
49
+ 'mongoose': 'frontend-hamroun',
50
+ // Alias React imports to empty modules
51
+ 'react': 'frontend-hamroun',
52
+ 'react-dom': 'frontend-hamroun',
53
+ 'react/jsx-runtime': 'frontend-hamroun',
54
+ 'react/jsx-dev-runtime': 'frontend-hamroun'
46
55
  }
47
56
  }
48
57
  });
@@ -0,0 +1,10 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "skipLibCheck": true,
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler",
7
+ "allowSyntheticDefaultImports": true
8
+ },
9
+ "include": ["vite.config.ts"]
10
+ }