Enable support for the experimental syntax 'importAssertions'
In my scripts I have import sheet from "./index.css" assert { type: "css" };
How can I enable this in Klap?
This is the error I get
Add @babel/plugin-syntax-import-assertions (https://git.io/JUbkv) to the 'plugins' section of your Babel config to enable parsing.
(node:67497) UnhandledPromiseRejectionWarning: Error: SyntaxError: /Users/marcus/Library/Mobile Documents/com~apple~CloudDocs/Projects/private/wieldy/src/app/wwwroot/scripts/components/save-button/index.js: Support for the experimental syntax 'importAssertions' isn't currently enabled (5:33):
👋 @marcuslindblom, Are import assertions ready in babel? I tried adding the @babel/plugin-syntax-import-assertions but it still errors out with invalid syntax. I assume there needs to be a @babel/plugin-transform-import-assertions for this to work?
Sorry but I'm not sure, did you manage to make it work?
@osdevisnot Do you think we can add this feature? I'm not sure how to add plugins to klap so I'm not capable of making a PR. I also found this discussion for rollup https://github.com/rollup/rollup/issues/3799