-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/cjs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
2 changes: 1 addition & 1 deletion
2
turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/esm-automatic.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
4 changes: 2 additions & 2 deletions
4
turbopack/crates/turbopack-tests/tests/snapshot/comptime/typeof/input/esm-specified.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
10 changes: 5 additions & 5 deletions
10
.../output/turbopack_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_80f572._.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...put/turbopack_crates_turbopack-tests_tests_snapshot_comptime_typeof_input_80f572._.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.