mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 11:56:36 +08:00
fix: tsconfig support ESM
This commit is contained in:
parent
651a2e6902
commit
8e7045fbcc
@ -20,9 +20,7 @@ export default (env = 'production') => {
|
||||
nodeResolve(),
|
||||
commonjs(),
|
||||
json(),
|
||||
typescript({
|
||||
module: 'ESNext',
|
||||
}),
|
||||
typescript(),
|
||||
alias({
|
||||
entries: [
|
||||
{ find: '@render', replacement: join(__dirname, '../src/render') },
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"module": "CommonJS",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"importHelpers": true,
|
||||
"jsx": "preserve",
|
||||
@ -17,5 +17,10 @@
|
||||
"@root/*": ["./*"]
|
||||
},
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"ts-node": {
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user