Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 0 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/__tests__/bundler-compatibility.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ describe('Vite bundler compatibility', () => {
expect(bundleContent).toContain(wasmFile);

// Specifically check that it's part of a new URL call or at least correctly referenced
// The exact format can vary based on the bundler's minification/transformations
const urlPattern = new RegExp(
`new URL\\(".*${wasmFile}",\\s*import\\.meta\\.url\\)`,
`new URL\\(["'\`][^"'\`]*${wasmFile}["'\`],\\s*(?:["'\`]{2}\\+)?import\\.meta\\.url\\)`,
);
expect(bundleContent).toMatch(urlPattern);
});
Expand Down
Loading