Skip to content

Commit c3aa96d

Browse files
authored
chore: add test case for browser filed (#2305)
1 parent eb03172 commit c3aa96d

File tree

9 files changed

+44
-6
lines changed

9 files changed

+44
-6
lines changed

crates/pack-tests/tests/snapshot/basic/alias/input/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { foo } from 'hello-a';
22
import { aliasPkg, aliasA } from "alias-pkg";
33
import { bar } from '@@/a';
44
import { aliasB } from '@@/b';
5+
import { a as browserslistA } from 'browserslist';
56

6-
console.log(foo, aliasPkg, bar);
7+
console.log(browserslistA, foo, aliasPkg, bar);
78

89
console.log('a from alias-pkg', aliasA);
910
console.log('b from alias-pkg', aliasB);

crates/pack-tests/tests/snapshot/basic/alias/output/crates_pack-tests_tests_snapshot_d4ef97b5.js renamed to crates/pack-tests/tests/snapshot/basic/alias/output/crates_pack-tests_tests_snapshot_2c1a2c5e.js

Lines changed: 23 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pack-tests/tests/snapshot/basic/alias/output/crates_pack-tests_tests_snapshot_d4ef97b5.js.map renamed to crates/pack-tests/tests/snapshot/basic/alias/output/crates_pack-tests_tests_snapshot_2c1a2c5e.js.map

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push([
22
typeof document === "object" ? document.currentScript : undefined,
3-
{"otherChunks":["crates_pack-tests_tests_snapshot_d4ef97b5.js"],"runtimeModuleIds":[70]}
3+
{"otherChunks":["crates_pack-tests_tests_snapshot_2c1a2c5e.js"],"runtimeModuleIds":[70]}
44
]);
55
// Dummy runtime

crates/pack-tests/tests/snapshot/node_modules/browserslist/browser.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pack-tests/tests/snapshot/node_modules/browserslist/index.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pack-tests/tests/snapshot/node_modules/browserslist/node.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pack-tests/tests/snapshot/node_modules/browserslist/package.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

next.js

0 commit comments

Comments
 (0)