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

import.meta breaks Jest tests #19

Open
jamesgpearce opened this issue Sep 9, 2023 · 1 comment
Open

import.meta breaks Jest tests #19

jamesgpearce opened this issue Sep 9, 2023 · 1 comment

Comments

@jamesgpearce
Copy link

This new line is causing me some problems with Jest ("Cannot use 'import.meta' outside a module"). Until recently, I could transpile the crsqlite-wasm module.

https://github.com/vlcn-io/js/blame/30c8d32598d4f538900883507300c0727bfb465d/packages/crsqlite-wasm/src/serialize.ts#L44

I figure I can work around it, but just a heads-up.

@jamesgpearce
Copy link
Author

For the record, this Babel plugin seems to fix it: https://www.npmjs.com/package/babel-plugin-transform-vite-meta-env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant