Open albert-kp opened 5 months ago
Discussed in #13603
Originally posted by albert-kp June 3, 2024 Iam using import.meta syntax for calling a webworker url. This is causing issues with Jest unit tests. How to fix this issue any idea.?
const worker = new Worker(new URL('{worker_url}', import.meta.url)); ^^^^ SyntaxError: Cannot use 'import.meta' outside a module
/
/
Discussed in https://github.com/facebook/create-react-app/discussions/13603