diff options
author | 2022-04-23 03:15:27 -0700 | |
---|---|---|
committer | 2022-04-23 03:15:27 -0700 | |
commit | 683b171c3ffc54957e1f02952938ff010fdcbbe0 (patch) | |
tree | 9ff186957214f6bccc696f5093cb88b0e39a40aa /integration/bunjs-only-snippets/transpiler.test.js | |
parent | ea241fcec7add6187ec915ed0b3983f3be0529f9 (diff) | |
download | bun-683b171c3ffc54957e1f02952938ff010fdcbbe0.tar.gz bun-683b171c3ffc54957e1f02952938ff010fdcbbe0.tar.zst bun-683b171c3ffc54957e1f02952938ff010fdcbbe0.zip |
:camera:
Diffstat (limited to 'integration/bunjs-only-snippets/transpiler.test.js')
-rw-r--r-- | integration/bunjs-only-snippets/transpiler.test.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/integration/bunjs-only-snippets/transpiler.test.js b/integration/bunjs-only-snippets/transpiler.test.js index 4759b17c9..268ebfd8b 100644 --- a/integration/bunjs-only-snippets/transpiler.test.js +++ b/integration/bunjs-only-snippets/transpiler.test.js @@ -23,7 +23,7 @@ describe("Bun.Transpiler", () => { // Explicitly remove the top-level export, even if it is in use by // another part of the file - eliminate: ["loader"], + eliminate: ["loader", "localVarToRemove"], }, /* only per-file for now, so this isn't good yet */ treeShaking: true, @@ -36,8 +36,6 @@ describe("Bun.Transpiler", () => { }); it("a deletes dead exports and any imports only referenced in dead regions", () => { - console.log("b"); - const out = transpiler.transformSync(` import {getUserById} from './my-database'; @@ -50,9 +48,6 @@ describe("Bun.Transpiler", () => { return <div id='user'>{user.name}</div>; } `); - - // when all three flags are set, it means - console.log(out); }); it("deletes dead exports and any imports only referenced in dead regions", () => { @@ -104,7 +99,6 @@ describe("Bun.Transpiler", () => { require("bar"); } `); - console.log(output); expect(output.includes("loader")).toBe(false); expect(output.includes("react")).toBe(false); expect(output.includes("deadFS")).toBe(false); |