Skip to content

Commit a9a9511

Browse files
committed
Update test
1 parent 476ed55 commit a9a9511

5 files changed

+13
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
console.log("typeof require", typeof require)
21
console.log("typeof import.meta", typeof import.meta)
3-
// CJS, should be `object`
2+
// CJS, should not be `undefined`
3+
console.log("typeof require", typeof require)
44
console.log("typeof module", typeof module)
55
console.log("typeof exports", typeof exports)
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import './dep.js'
22

3-
console.log("typeof require", typeof require)
43
console.log("typeof import.meta", typeof import.meta)
54
// ESM, should be `undefined`
5+
console.log("typeof require", typeof require)
66
console.log("typeof module", typeof module)
77
console.log("typeof exports", typeof exports)
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
console.log("typeof require", typeof require)
21
console.log("typeof import.meta", typeof import.meta)
3-
// ESM, should be `undefined`
2+
// ESM CJS, should be `undefined`
3+
console.log("typeof require", typeof require)
44
console.log("typeof module", typeof module)
55
console.log("typeof exports", typeof exports)

turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/output/turbopack_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_80f572._.js

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/output/turbopack_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_80f572._.js.map

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)