Skip to content

Commit

Permalink
Add resolve() method to SourceProvider (#177)
Browse files Browse the repository at this point in the history
* Refactor bundle tests' `fs!` macro to drop dependency on `TestProvider` (#174)

This allows the `fs!` macro to be reused with other `SourceProvider` implementations on a per-test basis.

* Refactor `error_test()` to invoke a callback for its assertion (#174)

This allows each caller to define its own assertions and not be forced into asserting for `BundleErrorKind::UnsupportedLayerCombination`.

* Add `resolve()` method to `SourceProvider` (#174)

This adds a `resolve()` method to `SourceProvider` which is responsible for converting an `@import` specifier to a file path. The default `FileProvider` still uses the existing behavior of assuming the specifier to be a relative path and joining it with the originating file's path.
  • Loading branch information
dgp1130 committed May 17, 2022
1 parent 9b4de9e commit c8464cc
Showing 1 changed file with 423 additions and 262 deletions.

0 comments on commit c8464cc

Please sign in to comment.