-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[labs/ssr] Add "module" to condition name to resolve for Module Loader #3849
Conversation
🦋 Changeset detectedLatest commit: e67b108 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📊 Tachometer Benchmark ResultsSummarynop-update
render
update
update-reflect
Resultslit-element-list
render
update
update-reflect
lit-html-kitchen-sink
render
update
nop-update
lit-html-repeat
render
update
lit-html-template-heavy
render
update
reactive-element-list
render
update
update-reflect
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brilliant investigation & elegant fix! Is there a way to test this change?
Aha, yes! I have manually gone to Edit: in it's current state, I also had to add |
Nice! Is it possible to add a unit test as well? |
@AndrewJakubowicz thanks for keeping me honest, test added! |
testIndex | ||
); | ||
const {module, path: modulePath} = result; | ||
assert.is(module.namespace.packageValue, 'module'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome!
Looks like this is caused by microsoft/tslib#161 which appears to be stalled. |
@justinfagnani I agree this is non-standard on their part but it seems other tools are including "module" in their default conditions too e.g. |
This was causing errors in lit.dev repo running eleventy plugin in VM mode.
This was when trying to load
tslib
which has these package exportsand we actually want the "module" export, as the "import" one is causing the error above.