You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
The issue seems to be that the plugin by default uses an ESBuild filter of /.*/. This will result in it trying to Babel transform all files that ESBuild processes, including any imported JSON files (e.g. codes.json in your example), and Babel does not support transforming JSON directly.
ESBuild filters are parsed using Go's RegExp library, which doesn't support lookbehind assertions, so I hacked around this in my project by passing a custom filter to the plugin in the ESBuild config:
having issue using this plugin in my esbuild.config.json.
I just copy pasted your example, throws error immediately.
you can see the error in action by uncommenting this lline
and running
npm start
The text was updated successfully, but these errors were encountered: