Upgrading to ember-cli-mirage 1.1.0

I followed the steps described in ember-cli-mirage upgrade guide to upgrade from 0.4.15 to 1.1.0, but had to install additional dependencies:

@babel/plugin-transform-block-scoping
@babel/runtime

Now all the tests pass again (yay), but there is the following message at the startup:

ember t -s
...

⠧ Building[BABEL] Note: The code generator has deoptimised the styling of /Users/Serguei/projects/ember-app/node_modules/@miragejs/server/dist/index.js
as it exceeds the max of 500KB.

What’s wrong with that? I also have an impression that it takes more time to run te same tests as with the previous version of ember-cli-mirage.

Thank you.

We’re working on figuring out the rollup configuration of @miragejs/server, which is the new package ember-cli-mirage depends on for most of its functionality. Sorry about the warning, we’re still working on that one.

The babel plugins, you should absolutely not need… this is the first I’m hearing of it. We should be publishing a new version of ember-cli-mirage soon that bumps @miragejs/server, which hopefully will fix some of these issues. But if you could publish a reproduction for the @babel errors that might help us out.

I know @ryanto’s also been working on testing with @miragejs/server and I believe he also noticed some speed improvements with some of our recent upgrades.

Hi Sam! Thank you for your response. I created a separate branch to reproduce the issue. You can see the last commits to see the full walkthrough.

Actually, tests (the only one) fail with the following error: