-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--footer esbuild & rollup style! (#14396)
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
- Loading branch information
1 parent
a234e06
commit 7996d06
Showing
9 changed files
with
93 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { describe } from "bun:test"; | ||
import { itBundled } from "./expectBundled"; | ||
|
||
describe("bundler", () => { | ||
itBundled("footer/CommentFooter", { | ||
footer: "// developed with love in SF", | ||
files: { | ||
"/a.js": `console.log("Hello, world!")`, | ||
}, | ||
onAfterBundle(api) { | ||
api.expectFile("out.js").toEndWith('// developed with love in SF"\n'); | ||
}, | ||
}); | ||
itBundled("footer/MultilineFooter", { | ||
footer: `/** | ||
* This is copyright of [...] ${new Date().getFullYear()} | ||
* do not redistribute without consent of [...] | ||
*/`, | ||
files: { | ||
"index.js": `console.log("Hello, world!")`, | ||
}, | ||
onAfterBundle(api) { | ||
api.expectFile("out.js").toEndWith(`/** | ||
* This is copyright of [...] ${new Date().getFullYear()} | ||
* do not redistribute without consent of [...] | ||
*/\"\n`); | ||
}, | ||
}); | ||
}); |
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