miragejs / ember-cli-mirage

An Ember Addon to easily add Mirage JS to your Ember app.
http://ember-cli-mirage.com
MIT License
863 stars 441 forks source link

Fix initialiser location #2574

Open mansona opened 6 months ago

mansona commented 6 months ago

Having the main initialiser in the app folder means that a consuming app can't actually override the initialiser.

This means that you can't have an embroider safe implementation that works in Fastboot, because we can't have a fastboot-specific ember-cli-mirage initialiser that doesn't (eventually) import pretender. This means that even though pretender doesn't actually work in node there is no way to prevent it being imported in your app, until this PR is merged 👍