Closed naramdash closed 5 months ago
Thanks for your report. It should been fixed on https://github.com/unplugin/unplugin-turbo-console/releases/tag/v1.8.7
Hi, just a notice. On the new version(v1.8.8), we expose babel parser plugins to the options.
So you need config importAttributes
manually like this:
export default defineConfig({
plugins: [
TurboConsole({
babelParserPlugins: [
'importAttributes',
]
}),
]
})
Thank you @yuyinws , It works good!
Describe the bug
If i use a package has
import with {type: 'json'}
, turbo-console raises an error related to babel parser.Scripts
vite build
, andvite dev
work well without turbo-console.You can reproduce this error with a github repo link on reproduction.
Reproduction
https://github.com/naramdash/test-turbo-import-with-json
System Info
Used Package Manager
npm
Validations