I'm getting this error when i use target: 'es2020' inside snowpack.config.js but es2018 works fine and bundles the package, however, i'm using import.meta in my jsx files and es2018 doesn't support that. Any help? (thanks in advanced.)
Webpack errors:
./_snowpack/pkg/react-query.js 1:12514
Module parse failed: Unexpected token (1:12514)
File was processed with these loaders:
* ../node_modules/babel-loader/lib/index.js
* ../node_modules/@snowpack/plugin-webpack/plugins/import-meta-fix.js
* ../node_modules/@snowpack/plugin-webpack/plugins/proxy-import-resolve.js
You may need an additional loader to handle the result of these loaders.
I'm getting this error when i use
target: 'es2020'
insidesnowpack.config.js
butes2018
works fine and bundles the package, however, i'm usingimport.meta
in my jsx files and es2018 doesn't support that. Any help? (thanks in advanced.)Here are the complete logs [if needed] : https://gist.github.com/Labham-Jain/9a19544aca853f893a9dd46c7205a68a