Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Improve testing system for tree shaker #4663

Merged
merged 12 commits into from
Apr 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a test
kdy1 committed Apr 21, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit e2c31a0f7c07a5e3c5981639a01516da8cef4d96
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"exports":[
["external1"],
["external1", "external2"]
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { upper } from "module";
export let foobar = "foo";
export const foo = foobar;
const bar = "bar";
foobar += bar;
let foobarCopy = foobar;
foobar += "foo";
console.log(foobarCopy);
foobarCopy += "Unused";
function internal() {
return upper(foobar);
}
export function external1() {
return internal() + foobar;
}
export function external2() {
foobar += ".";
}