File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1- import { createRequire } from 'node:module'
1+ /* eslint-disable @typescript-eslint/no-require-imports */
2+
23import type * as _compiler from 'vue/compiler-sfc'
34
45// extend the descriptor so we can store the scopeId on it
@@ -30,11 +31,8 @@ function tryResolveCompiler(root?: string) {
3031 }
3132}
3233
33- const _require = createRequire ( import . meta. url || __filename )
3434function tryRequire ( id : string , from ?: string ) {
3535 try {
36- return from
37- ? _require ( _require . resolve ( id , { paths : [ from ] } ) )
38- : _require ( id )
36+ return from ? require ( require . resolve ( id , { paths : [ from ] } ) ) : require ( id )
3937 } catch { }
4038}
Original file line number Diff line number Diff line change @@ -3,6 +3,5 @@ import { defineConfig } from 'tsdown'
33export default defineConfig ( {
44 entry : [ './src/*.ts' ] ,
55 exports : true ,
6- shims : true ,
76 inlineOnly : [ 'slash' , '@jridgewell/gen-mapping' ] ,
87} )
You can’t perform that action at this time.
0 commit comments