Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Sep 19, 2024
1 parent 476ed55 commit a9a9511
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.log("typeof require", typeof require)
console.log("typeof import.meta", typeof import.meta)
// CJS, should be `object`
// CJS, should not be `undefined`
console.log("typeof require", typeof require)
console.log("typeof module", typeof module)
console.log("typeof exports", typeof exports)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './dep.js'

console.log("typeof require", typeof require)
console.log("typeof import.meta", typeof import.meta)
// ESM, should be `undefined`
console.log("typeof require", typeof require)
console.log("typeof module", typeof module)
console.log("typeof exports", typeof exports)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.log("typeof require", typeof require)
console.log("typeof import.meta", typeof import.meta)
// ESM, should be `undefined`
// ESM CJS, should be `undefined`
console.log("typeof require", typeof require)
console.log("typeof module", typeof module)
console.log("typeof exports", typeof exports)

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a9a9511

Please sign in to comment.