File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,24 +6,4 @@ export default defineConfig({
66 clean : true ,
77 dts : false ,
88 target : false ,
9- plugins : [
10- {
11- name : 'hack-eval-require' ,
12- transform ( code , id ) {
13- const banner =
14- `import { createRequire as __cr } from "node:module";\n` +
15- `const require = __cr(import.meta.url);\n` ;
16- const hitRE = / e v a l \( \s * [ ' " ] r e q u i r e [ ' " ] \s * \) /
17- if ( ! / \. ( m j s | j s | m t s | t s | j s x | t s x ) $ / . test ( id ) ) return null ;
18- if ( ! hitRE . test ( code ) ) return null ;
19- if ( code . includes ( "createRequire as __cr" ) && code . includes ( "__cr(import.meta.url)" ) ) {
20- return null ;
21- }
22- return {
23- code : banner + code ,
24- map : null ,
25- } ;
26- }
27- }
28- ] ,
299} ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ kx-coroutines = "1.11.0"
99kx-io = " 0.9.0"
1010kx-datetime = " 0.8.0-0.6.x-compat"
1111kx-atomicfu = " 0.32.1"
12- ktor = " 3.4.3 "
12+ ktor = " 3.5.0 "
1313
1414acidify-codec = " 0.1.0"
1515ktfs = " 0.2.0"
You can’t perform that action at this time.
0 commit comments