Skip to content

Automatically handle absolute file: URLs for FileImporters#3181

Merged
nex3 merged 1 commit intomainfrom
file-importer-absolute
Oct 7, 2021
Merged

Automatically handle absolute file: URLs for FileImporters#3181
nex3 merged 1 commit intomainfrom
file-importer-absolute

Conversation

@nex3
Copy link
Contributor

@nex3 nex3 commented Oct 6, 2021

Absolute file: URLs are always unambiguous when referring to the native
filesystem, so there's no need for the custom callback to handle them.
What's more, allowing the callback to only ever have to think about
relative URLs will make it much simpler for users to implement.

Absolute file: URLs are always unambiguous when referring to the
native filesystem, so there's no need for the custom callback to
handle them. What's more, allowing the callback to only ever have to
think about relative URLs will make it much simpler for users to
implement.
@nex3 nex3 force-pushed the file-importer-absolute branch from 11bfe57 to 9175a33 Compare October 6, 2021 23:58
@nex3 nex3 changed the title Automatically handle absolute URLs for FileImporters Automatically handle absolute file: URLs for FileImporters Oct 6, 2021
nex3 added a commit to sass/sass-spec that referenced this pull request Oct 7, 2021
nex3 added a commit to sass/dart-sass that referenced this pull request Oct 7, 2021
@nex3 nex3 merged commit 3b6deaf into main Oct 7, 2021
@nex3 nex3 deleted the file-importer-absolute branch October 7, 2021 00:15
nex3 added a commit to sass/sass-spec that referenced this pull request Oct 9, 2021
nex3 added a commit to sass/dart-sass that referenced this pull request Oct 9, 2021
nex3 added a commit to sass/sass-spec that referenced this pull request Oct 9, 2021
nex3 added a commit to sass/dart-sass that referenced this pull request Oct 13, 2021
nex3 added a commit to sass/sass-spec that referenced this pull request Oct 13, 2021
mirisuzanne pushed a commit that referenced this pull request Feb 10, 2022
Absolute file: URLs are always unambiguous when referring to the
native filesystem, so there's no need for the custom callback to
handle them. What's more, allowing the callback to only ever have to
think about relative URLs will make it much simpler for users to
implement.
mirisuzanne added a commit that referenced this pull request Feb 10, 2022
* main: (149 commits)
  Add the sourceMapIncludeSources option in the new JS API (#3226)
  Fix the toc tool to insert the toc (#3225)
  Fix some incorrect documentation/typings in LegacyPluginThis.options (#3246)
  Add a type annotation for the top-level NULL field (#3243)
  Add type annotations for the top-level TRUE and FALSE fields (#3241)
  Add type annotations for the sass.types.Error class (#3238)
  Add a type declaration for LegacyPluginThis.options.context (#3236)
  Make LegacyAsyncFunction type more usable (#3237)
  Allow SassFunction signatures to be checked on return (#3220)
  Make LegacyFileOptions.data optional (#3215)
  Use the URL type from the DOM definitions, not from Node (#3214)
  Document the new JS API (#3183)
  Make the new JS API a bit more idiomatic (#3200)
  Update immutable-js dep. (#3195)
  Add a code example for Logger.silent (#3192)
  Update dependencies (#3193)
  Replace FileImporterResult with a plain URL (#3180)
  Convert explicit compatiblity HTML into a nicer @-tag
  Convert explicit "Heads up" HTML into nicer-looking Markdown
  Automatically handle absolute file: URLs for FileImporters (#3181)
  ...
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.

2 participants