Closed pooledge closed 3 years ago
I've just released a major version.
Now this plugin transpiles only known import.meta
properties, that is, only import.meta.url
. The remaining properties are untouched and it's the responsibility of other plugins to substitute them. I believe this is what Vite does.
You should be using https://github.com/OpenSourceRaidGuild/babel-vite/tree/main/packages/babel-preset-vite for this.
Hi, I am trying to get @testing-library/svelte running using Sveltekit and Vite 2. Not sure whether it's a jest issue. Transpiling ESM works, but the
import.meta
seems to contain onlyurl
object, as per error:.babelrc
package.json