File tree Expand file tree Collapse file tree 3 files changed +18
-14
lines changed Expand file tree Collapse file tree 3 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 8
8
"repository" : " teages/nuxt-legacy" ,
9
9
"exports" : {
10
10
"." : {
11
- "types" : " ./dist/module.d.ts" ,
12
- "import" : " ./dist/module.mjs" ,
13
- "require" : " ./dist/module.cjs"
11
+ "types" : " ./dist/types.d.mts" ,
12
+ "import" : " ./dist/module.mjs"
13
+ }
14
+ },
15
+ "main" : " ./dist/module.mjs" ,
16
+ "typesVersions" : {
17
+ "*" : {
18
+ "." : [
19
+ " ./dist/types.d.mts"
20
+ ]
14
21
}
15
22
},
16
- "main" : " ./dist/module.cjs" ,
17
- "types" : " ./dist/module.d.ts" ,
18
23
"files" : [
19
24
" dist"
20
25
],
Original file line number Diff line number Diff line change 1
- import type { ModuleOptions } from './types '
1
+ import type { Options as ViteLegacyOptions } from '@vitejs/plugin-legacy '
2
2
import { addServerTemplate , createResolver , defineNuxtModule } from '@nuxt/kit'
3
+
3
4
import { setupVite } from './setup/vite'
4
5
5
6
export { cspHashes } from './csp'
6
- export * from './types'
7
+
8
+ export interface ModuleOptions {
9
+ vite ?: ViteLegacyOptions
10
+ }
11
+
12
+ export type { ViteLegacyOptions }
7
13
8
14
export default defineNuxtModule < ModuleOptions > ( {
9
15
meta : {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments