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

Correct invalid QUnit imports. #757

Merged
merged 1 commit into from
Sep 16, 2020
Merged

Correct invalid QUnit imports. #757

merged 1 commit into from
Sep 16, 2020

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Sep 16, 2020

Using import QUnit from 'qunit'; is actually invalid. There is no default export from QUnit itself. The way this was working is that it has been relying on loader.js's behavior when a module does not include a default export (it makes moduleExports.default = moduleExports).

Using `import QUnit from 'qunit';` is _actually_ invalid. There **is
no** default export from QUnit itself. The way this was working is that
it has been relying on `loader.js`'s behavior when a module does not
include a default export (it makes `moduleExports.default =
moduleExports`).
@rwjblue rwjblue added the bug label Sep 16, 2020
@rwjblue rwjblue merged commit 32c4cee into master Sep 16, 2020
@rwjblue rwjblue deleted the fix-qunit-imports branch September 16, 2020 17:30
@Krinkle
Copy link
Contributor

Krinkle commented Sep 16, 2020

@rwjblue This would be great to support upstream. I think this is possible to do without breaking compat, right?

@rwjblue
Copy link
Member Author

rwjblue commented Sep 16, 2020

Ya, I can submit a PR for that and we can chat through it.

@Krinkle
Copy link
Contributor

Krinkle commented Sep 17, 2020

Sounds good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants