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

Use package name of AbortController polyfill in whitelisted dependencies #137

Merged

Conversation

bobisjan
Copy link
Contributor

@bobisjan bobisjan commented Oct 28, 2018

This ensures that polyfill will be listed in dist/package.json's dependencies
at build, and then properly installed in FastBoot application server.

closes #115, and also closes mainmatter/ember-simple-auth#1690, but requires ember-fastboot/fastboot#200, using both whitelisted package and module path, which allows to do not wait on the PR, abortcontroller-polyfill/dist/cjs-ponyfill can be removed later.

@rwjblue
Copy link
Member

rwjblue commented Oct 29, 2018

Wouldn’t ember-fastboot/fastboot#200 allow us to have no changes in this repo? It’s totally possible that I’ve missed something though (I’ve only done a cursory review)...

@bobisjan
Copy link
Contributor Author

This change is required by FastBoot build system, name in fastbootDependencies must match with name in dependencies in order to get listed as a dependency in application dist/package.json
https://github.com/ember-fastboot/ember-cli-fastboot/blob/master/lib/broccoli/fastboot-config.js#L86.

ember-fastboot/fastboot#200 allows to match this dependency in whitelist and require “nested” module at the same time.

This ensures that polyfill will be listed in `dist/package.json`'s `dependencies`
at build, and then properly installed in FastBoot application server.
@bobisjan bobisjan force-pushed the require-abortcontroller-polyfill-fix branch from 0421d18 to 25c7ceb Compare November 20, 2018 16:25
@bobisjan
Copy link
Contributor Author

@rwjblue, @xg-wang should be ready for review.

@@ -66,6 +66,7 @@
"configPath": "tests/dummy/config",
"fastbootDependencies": [
"node-fetch",
"abortcontroller-polyfill",
Copy link
Member

Choose a reason for hiding this comment

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

Yea I think this is right, should we release a patch for the fix?

@xg-wang xg-wang merged commit 1c7ff64 into ember-cli:master Nov 21, 2018
@bobisjan bobisjan deleted the require-abortcontroller-polyfill-fix branch November 22, 2018 05:20
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.

Fastboot mode, isAuthenticated always fasle Dependency issue with fastboot-app-server
3 participants