File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change
1
+ import { defineBuildConfig } from 'unbuild'
2
+
3
+ export default defineBuildConfig ( {
4
+ entries : [
5
+ 'src/vite' ,
6
+ ] ,
7
+ clean : true ,
8
+ declaration : true ,
9
+ externals : [
10
+ 'vite' ,
11
+ 'vite-plugin-inspect' ,
12
+ 'vite-plugin-vue-inspector' ,
13
+ 'execa' ,
14
+ ] ,
15
+ rollup : {
16
+ emitCJS : true ,
17
+ inlineDependencies : true ,
18
+ } ,
19
+ } )
Original file line number Diff line number Diff line change 1
1
import { createRequire } from 'node:module'
2
- import path from 'node:path'
3
- import url from 'node:url'
4
2
5
3
globalThis . require = createRequire ( import . meta. url )
6
- globalThis . __filename = url . fileURLToPath ( import . meta. url )
7
- globalThis . __dirname = path . dirname ( __filename )
Original file line number Diff line number Diff line change 43
43
"node" : " >=v14.21.3"
44
44
},
45
45
"scripts" : {
46
- "build" : " tsup " ,
46
+ "build" : " unbuild " ,
47
47
"stub" : " tsup --watch"
48
48
},
49
49
"peerDependencies" : {
You can’t perform that action at this time.
0 commit comments