-
Notifications
You must be signed in to change notification settings - Fork 160
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
Fastboot incompatible with modern state of the ecosystem #913
Comments
AFAIK there's no reason to use It was only needed in the era when apps didn't normally import NPM dependencies. It makes no sense as an API anymore. Both embroider and ember-auto-import test under fastboot to make sure this works. |
@ef4 are you saying that |
Oh yeah, no, I don't mean node built-ins or packages with native binaries will work both ways. But even for those you can manage the swap between them with embroider/macros. That's actually what embroider does internally when we encounter classical fastboot directories that are intended to override a module only in fastboot. |
Issues:
fetch
,Headers
ReadableStream
etc.(this turned out to be a config mishap for ember-cli-fastboot-testing see Config not working embermap/ember-cli-fastboot-testing#488)buildSandboxGlobal
no longer runs, so there is no way to enhance the built in globals with WHATWG spec implementations of APIs such asAbortController
andfetch
even when these things exist as globals in node.fastbootDependencies
does not allow whitelisting local dependencies, which prevents applications from addressing this shortcoming short of usingpnpm patch
to splice in new globals. For instance the following fails to resolve withFastboot.require
Example recommended config for use with EmberData and fetch
The text was updated successfully, but these errors were encountered: