Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

fix(Compiler): Allow mixing of deferred/not-deferred... #1559

Closed
wants to merge 4 commits into from

Conversation

matanlurey
Copy link
Contributor

@matanlurey matanlurey commented Aug 10, 2018

... components coming from the same library (i.e. import).

Closes #1558.

@matanlurey matanlurey changed the title fix(Compiler): Allow mix of deferred/not-deferred component usage... fix(Compiler): Allow mixing of deferred/not-deferred... Aug 10, 2018
matanlurey added a commit that referenced this pull request Aug 10, 2018
... components coming from the same library (i.e. import).

Mostly involved simplifying/refactoring the bit of `DartEmitter` that created a mapping of import prefixes to use. The old method tried to use one mapping for both deferred and non-deferred libraries; my new approach uses (the already created) separate mappings.

I put a bit of refactoring in to make the method(s) more understandable in the future, and a simple change to "path_util.dart" to compensate for how deferred modules are stored (importing themselves is possible).

Closes #1558.
Closes #1559.

PiperOrigin-RevId: 208234448
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants