We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I import sass with code: await import('sass'), it report this:
sass
await import('sass')
import sass from 'sass'` is deprecated. Please use `import * as sass from 'sass'` instead.
How can i fix this waring?
The text was updated successfully, but these errors were encountered:
Can you provide a full reproduction of this? I don't see a warning with the following code with Sass 1.70.0:
async function main() { const sass = await import('sass'); console.log(sass.compileString('a {b: c}')); } main();
Sorry, something went wrong.
My code looks like this, So is it wrong?
-- console.log(sass.compileString('a {b: c}')); ++ console.log(sass.default.compileString('a {b: c}'));
It seems I need to treat sass and less differently.
less
When I load less using the dynamic import method, I need to call the .default, but sass doesn't. Yeah, I'm writing a postcss plugin.
import
.default
postcss
Yes, you need to avoid using .default..
.default.
No branches or pull requests
When I import
sass
with code:await import('sass')
, it report this:How can i fix this waring?
The text was updated successfully, but these errors were encountered: