Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Aug 23, 2023
1 parent 628591b commit 4f06a7f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/vite-node/src/externalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ async function _shouldExternalize(
): Promise<string | false> {
if (isNodeBuiltin(id))
return id

// data: should be processed by native import,
// since it is a feature of ESM
if (id.startsWith('data:'))
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions test/vite-node/src/watch/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// eslint-disable-next-line no-console
console.log('test 1')
2 changes: 2 additions & 0 deletions test/vite-node/src/watch/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// eslint-disable-next-line no-console
console.log('test 1')
2 changes: 0 additions & 2 deletions test/vite-node/test/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,4 @@ it.each(['index.js', 'index.cjs', 'index.mjs'])('correctly runs --watch %s', asy
await cli.waitForStdout('test 1')
editFile(entryPath, c => c.replace('test 1', 'test 2'))
await cli.waitForStdout('test 2')
}, {
timeout: 10_000,
})

0 comments on commit 4f06a7f

Please sign in to comment.