File tree Expand file tree Collapse file tree 5 files changed +3
-11
lines changed Expand file tree Collapse file tree 5 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,5 @@ import { config } from '../../tsdown.config.js'
2
2
3
3
export default config ( {
4
4
onlyIndex : true ,
5
- shims : true ,
6
5
external : [ 'node:module' ] ,
7
6
} )
Original file line number Diff line number Diff line change 1
1
import { config } from '../../tsdown.config.js'
2
2
3
3
export default config ( {
4
- shims : true ,
5
4
platform : 'node' ,
6
5
} )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export const Devtools = ({ nuxtContext }: Options = {}): Plugin => {
21
21
if ( import . meta. DEV ) {
22
22
const { createServer } = await import ( 'vite' )
23
23
const subServer = await createServer ( {
24
- root : resolve ( __dirname , '../src/client' ) ,
24
+ root : resolve ( import . meta . dirname , '../src/client' ) ,
25
25
server : {
26
26
hmr : {
27
27
port : await getPort ( ) ,
@@ -33,7 +33,7 @@ export const Devtools = ({ nuxtContext }: Options = {}): Plugin => {
33
33
} else {
34
34
server . middlewares . use (
35
35
DEV_SERVER_PATH ,
36
- sirv ( resolve ( __dirname , 'client' ) , {
36
+ sirv ( resolve ( import . meta . dirname , 'client' ) , {
37
37
single : true ,
38
38
dev : true ,
39
39
} ) ,
Original file line number Diff line number Diff line change 1
1
import { config } from '../../tsdown.config.js'
2
2
3
3
export default config ( {
4
- shims : true ,
5
4
ignoreDeps : [ 'vue' ] ,
6
5
platform : 'node' ,
7
6
} )
Original file line number Diff line number Diff line change 1
1
import path from 'node:path'
2
2
import process from 'node:process'
3
3
import { fileURLToPath } from 'node:url'
4
- import { defineConfig , type Options } from 'tsdown'
5
4
import Macros from 'unplugin-macros/rolldown'
6
5
import Quansync from 'unplugin-quansync/rolldown'
7
6
import Raw from 'unplugin-raw/rolldown'
7
+ import type { Options } from 'tsdown'
8
8
import type { ModuleResolutionKind } from 'typescript'
9
9
import type { Options as UnusedOptions } from 'unplugin-unused'
10
10
@@ -15,14 +15,12 @@ export function config({
15
15
onlyIndex = false ,
16
16
platform = 'neutral' ,
17
17
external = [ ] ,
18
- shims,
19
18
ignoreDeps = { peerDependencies : [ 'vue' ] } ,
20
19
onSuccess,
21
20
} : {
22
21
onlyIndex ?: boolean
23
22
platform ?: Options [ 'platform' ]
24
23
external ?: string [ ]
25
- shims ?: boolean
26
24
ignoreDeps ?: UnusedOptions [ 'ignore' ]
27
25
onSuccess ?: Options [ 'onSuccess' ]
28
26
} = { } ) : Options {
@@ -45,7 +43,6 @@ export function config({
45
43
define : {
46
44
'import.meta.DEV' : JSON . stringify ( ! ! process . env . DEV ) ,
47
45
} ,
48
- shims,
49
46
platform,
50
47
external,
51
48
unused : {
@@ -74,5 +71,3 @@ export function config({
74
71
onSuccess,
75
72
}
76
73
}
77
-
78
- export default defineConfig ( config ( ) )
You can’t perform that action at this time.
0 commit comments