Skip to content

Commit d16ef76

Browse files
committed
Use type: module for frontend package
1 parent 3243253 commit d16ef76

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

app/frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"description": "E-commerce discount calculator frontend",
55
"private": true,
6+
"type": "module",
67
"scripts": {
78
"dev": "vite",
89
"build": "tsc && vite build",

app/frontend/tsconfig.node.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"skipLibCheck": true,
55
"module": "ESNext",
66
"moduleResolution": "bundler",
7-
"allowSyntheticDefaultImports": true
7+
"allowSyntheticDefaultImports": true,
8+
"esModuleInterop": true
89
},
910
"include": ["vite.config.ts"]
1011
}

0 commit comments

Comments
 (0)