Skip to content
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

This re-enables package import tests #99

Merged
merged 9 commits into from
Sep 15, 2021
Merged

Conversation

NSeydoux
Copy link
Contributor

@NSeydoux NSeydoux commented Sep 9, 2021

These had been disabled until the package was published on NPM, and
mistakingly hadn't been re-enabled.

These had been disabled until the package was published on NPM, and
mistakingly hadn't been re-enabled.
This prevents the bahaviour documented in
ezolenko/rollup-plugin-typescript2#170 from
happening. Namely, a _virtual/tslib.js file would be emitted, which
confuses NodeJS because we expect all ES modules to have the .mjs
extension.

The previous syntax feels more elegant though, so I think it should be
re-enabled once the bug is resolved. Also, there's no guarantee that
this issue can alway be worked around so easily. Issue tracking is
available at
ezolenko/rollup-plugin-typescript2#282.
Trying to import the package in an environment where it's not available
causes Webpack to fail. Until a proper fix is found, this works around
the issue by simply not trying to auto-import the
@inrupt/solid-client-authn package.
Copy link
Contributor

@ajacksified ajacksified left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for now - I'll review the webpack config separately to try to get things loading async properly.

@NSeydoux NSeydoux merged commit 9762864 into main Sep 15, 2021
@NSeydoux NSeydoux deleted the chore/cd-test-imports branch September 15, 2021 06:55
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