Skip to content

Package Importer updates#3699

Merged
nex3 merged 5 commits intosass:mainfrom
oddbird:package-importer-changes
Sep 28, 2023
Merged

Package Importer updates#3699
nex3 merged 5 commits intosass:mainfrom
oddbird:package-importer-changes

Conversation

@jamesnw
Copy link
Contributor

@jamesnw jamesnw commented Sep 26, 2023

Changes:

  • Throw an error if nodePackageImporter is used in the browser.

  • Remove specified order in the global import list, as users can specify the
    order within the importers option.

Closes #3701

* If any object in `options.importers` is exactly equal to the object
`nodePackageImporter`:

* If the execution environment is the browser, throw an error.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nex3 Is a more formal way needed to specify the execution environment?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine, although it might be slightly more accurate to say "if no filesystem is available" in case this is run in a different kind of sandboxed JS environment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in 85a27d8

@nex3 nex3 self-requested a review September 26, 2023 20:20
@nex3 nex3 merged commit eb5117c into sass:main Sep 28, 2023
jgerigmeyer added a commit to oddbird/sass that referenced this pull request Oct 12, 2023
* main:
  Remove `isAlphaMissing` and add "alpha" to channel name types.
  Rename types using title-case for acronyms longer than two letters in camel-case identifiers.
  Clarifying performance expectations about sass and sass-embedded (sass#3716)
  Tweak language around getters and arrays.
  Code review
  Remove unused ValueObject type
  [First-Class Mixins] Flush to spec
  Move and restructure how we specify scopes
  Fix typos in the deprecation APi proposal (sass#3708)
  Return immutable types
  Remove generic change overload
  Add first class mixins to embedded sass protobuf and JS API (sass#3674)
  Draft 1.1 changes for Color spaces JS API  (sass#3704)
  Add support for the relative color syntax from CSS Color 5 (sass#3676)
  Bump tj-actions/changed-files from 39.0.3 to 39.2.0 (sass#3697)
  Package Importer updates (sass#3699)
  Fix link in Contributing docs (sass#3705)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The proposed ordering of importers is inconsistent for the package importer proposal

2 participants