Optimize wasm bindgen asset with manganis (#3531)

This commit is contained in:
Evan Almloff authored and GitHub committed 2025-01-21 15:14:45 -08:00
1 parent d8850c7666
commit 13dcd80fbf
29 files changed
+933 -1089

No files matched your search

@@ -0,0 +1,11 @@
// @ts-check
const { test, expect } = require("@playwright/test");
test("optimized scripts run", async ({ page }) => {
await page.goto("http://localhost:8989");
// Expect the page to load the script after optimizations have been applied. The script
// should add an editor to the page that shows a main function
const main = page.locator("#main");
await expect(main).toContainText("hi");
});