Skip to content

Commit

Permalink
feat(create-app): include env shim
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 5, 2021
1 parent a7b6e2a commit 4802c1a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ module.exports = {
'node/no-extraneous-import': 'off',
'node/no-extraneous-require': 'off'
}
},
{
files: ['packages/create-app/template-*/**'],
rules: {
'node/no-missing-import': 'off'
}
}
]
}
2 changes: 2 additions & 0 deletions packages/create-app/template-react-ts/src/shim.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// enable types for import.meta.* and file types
import 'vite/env'
2 changes: 2 additions & 0 deletions packages/create-app/template-vue-ts/src/shim.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// enable types for import.meta.* and file types
import 'vite/env'

0 comments on commit 4802c1a

Please sign in to comment.