v0.12.0
Fixed
-
Fixes duplicate module errors by canonicalizing all import specifiers. Import
specifiers are now canonicalized by version number and default module. This
applies both to local project files, and throughout the entire external
dependency tree. -
Import maps now apply to modules in external dependencies, not just to local
project files. -
The TypeScript compiler can now deal with multiple versions of the same
dependency. Previously, if the import graph included two versions of the same
package, only one arbitrary version of the types would be compiled. This
caused various errors and missing type issues.
Changed
-
If the project contains a
package.jsonfile, then its
dependencies
field will be used to determine the version of dependencies (just like how NPM
works locally). -
Dependencies are now served from the special
"<service-worker-scope>/node_modules/..."path, instead of directly from
https://unpkg.com/...?moduleURLs. Behind-the-scenes, dependencies are still
fetched from unpkg, but they are now themselves transformed to ensure correct
specifier canonicalization. -
BREAKING Due to large changes to the way dependencies are handled, there
is some risk of breakage due to subtle behavior changes that existing
configurations may be relying on. Therefore, this release is versioned with a
major increment.