dart-sass/pkg/sass_api
Jennifer Thakar 1672178f64
Fix @at-root bug for common case of built-in use (#1469)
`@at-root` should now work properly in a nested import as long as the
only `@use` or `@forward` rules present are for built-in modules.

This is a partial but not complete fix for #1347. It's a bit hacky to
special case built-in modules here, but since they represent the only
real legitimate case for using this combination of features, it lets us
fix the bug for this case and avoid the bordering-on-infeasible work of
fixing this for user-defined modules.
2021-09-09 16:00:05 -07:00
..
doc Add a sass_api package and publishing infrastructure 2021-07-30 18:23:14 -07:00
lib Expose getters indicating which color fields a color has calculated (#1453) 2021-08-28 07:37:39 +00:00
CHANGELOG.md Fix @at-root bug for common case of built-in use (#1469) 2021-09-09 16:00:05 -07:00
dartdoc_options.yaml Add a sass_api package and publishing infrastructure 2021-07-30 18:23:14 -07:00
LICENSE Manually resolve symlinks before deploying sub-packages (#1419) 2021-08-03 23:26:27 +00:00
pubspec.yaml Fix @at-root bug for common case of built-in use (#1469) 2021-09-09 16:00:05 -07:00
README.md Add a sass_api package and publishing infrastructure 2021-07-30 18:23:14 -07:00

This package exposes additional APIs for working with Dart Sass, including access to the Sass AST and its load resolution logic.

This is split out into a separate package because so that it can be versioned separately. The sass_api package's API is expected to evolve more quickly than the Sass language itself, and will likely have more breaking changes as the internals evolve to suit the needs of the Sass compiler.

Depending on Development Versions

Sometimes it's necessary to depend on a version of a package that hasn't been released yet. Because this package directly re-exports names from the main sass package, you'll need to make sure you have a Git dependency on both it and the sass package:

dependency_overrides:
  sass:
    git:
      url: git://github.com/sass/sass
      ref: main # Replace this with a feature branch if necessary
  sass_api:
    git:
      url: git://github.com/sass/sass
      ref: main # Make sure this is the same as above!
      path: pkg/sass_api