Comments (4)
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();
from dart-sass.
My code looks like this, So is it wrong?
-- console.log(sass.compileString('a {b: c}'));
++ console.log(sass.default.compileString('a {b: c}'));
from dart-sass.
It seems I need to treat sass
and less
differently.
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.
from dart-sass.
Yes, you need to avoid using .default.
.
from dart-sass.
Related Issues (20)
- Bad state error when using `meta.apply` and compile with `render` HOT 2
- Unable to use meta.get-mixin to pass mixin as a value to another mixin, then use it in its content. HOT 3
- FileSpan is not defined when using @warn with a custom logger. HOT 1
- Anyway to wrap @use like we can with @import HOT 3
- Q&A: How to prevent color names being transformed to hex values HOT 2
- Dependency URLs with a `file` schema fail to resolve
- Standalone sass compiler: Can't find stylesheet to import HOT 1
- [feature request] Official Python bindings to replace `libsass-python` HOT 3
- box-shadow property not respecting strict unary operator with 0
- linux-musl 1.71.0 release builds are broken
- ESM export of `NodePackageImporter` is missing.
- Node package importer requires an entryPointDirectory in ESM HOT 1
- Deprecation message replaces underscores with hyphens HOT 2
- NodePackageImporter support for subpaths entry points without extensions HOT 8
- Build Errors with Latest Sass Version in GitHub Actions CI/CD Pipeline HOT 7
- Doesnt execute custom functions in renderSync HOT 1
- Node Package Importer can't find ESM entry point if args are provided HOT 1
- An alternate way to define inheritance by utilizing nesting HOT 3
- SCSS silently fails to compile lines beginning with `--` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart-sass.