File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
typescript-ts-node-loader Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1- const { existsSync } = require ( "node:fs" ) ;
2- const { resolve } = require ( "node:path" ) ;
3- const { run } = require ( "../../../utils/test-utils" ) ;
1+ import { existsSync } from "node:fs" ;
2+ import { dirname , resolve } from "node:path" ;
3+ import { fileURLToPath } from "node:url" ;
4+ import { run } from "../../../utils/test-utils.js" ;
5+
6+ const __filename = fileURLToPath ( import . meta. url ) ;
7+ const __dirname = dirname ( __filename ) ;
48
59describe ( "webpack cli" , ( ) => {
610 it ( "should support typescript esnext file" , async ( ) => {
Original file line number Diff line number Diff line change 1- const { existsSync } = require ( "node:fs" ) ;
2- const { resolve } = require ( "node:path" ) ;
3- const { run } = require ( "../../../utils/test-utils" ) ;
1+ import { existsSync } from "node:fs" ;
2+ import { dirname , resolve } from "node:path" ;
3+ import { fileURLToPath } from "node:url" ;
4+ import { run } from "../../../utils/test-utils.js" ;
5+
6+ const __filename = fileURLToPath ( import . meta. url ) ;
7+ const __dirname = dirname ( __filename ) ;
48
59describe ( "webpack cli" , ( ) => {
610 it ( "should support typescript esnext file" , async ( ) => {
You can’t perform that action at this time.
0 commit comments