question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Actionable warning for Your build is slower because some babel plugins are non-serializable?

See original GitHub issue

Hi. When building a fresh app with ember-test-selectors installed, I get the following warning:

[ConfigLoader]WARNING: Your build is slower because some babel plugins are non-serializable

I could have created an issue over at ember-test-selectors to see if this is easily fixable from there. However, I am not completely sure how useful this message itself would be for them.

Would it make sense to provide some actionable best-practices we could link to for ember-addons to be non-“non-serializable”?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ef4commented, Apr 4, 2021

is there something that addons could be doing to make it so that Embroider does know where the transforms are coming from?

The addons were already doing what ember-cli-htmlbars supports, but embroider didn’t understand that. This should fix it: https://github.com/embroider-build/embroider/pull/754

2reactions
ef4commented, Mar 17, 2021

Specifically for ember-test-selectors, you can manually tell Embroider where to find its plugins like this:

return compatBuild(app, Webpack, {
    pluginHints: [
      {
        resolve: [
          'ember-test-selectors/transform-test-selector-params-to-hash-pairs',
        ],
      },
      {
        resolve: ['ember-test-selectors/strip-test-selectors'],
      },
    ],
  });
Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot run tests when building embroider · Issue #384 - GitHub
I was able to sucesfully build our app with embroider, but could not run ... WARNING: Your build is slower because some babel...
Read more >
Plugins - Babel
Plugins. Babel's code transformations are enabled by applying plugins (or presets) to your configuration file.
Read more >
Changelog Archive - Jenkins
The ability to access some files on the controller from agents has been removed. Some plugins are incompatible with this change and may...
Read more >
Gatsby Changelog | 5.3.0
You should now successfully see the original error, with any amount of workload. Improve readability of errors & warnings. When you saw the...
Read more >
Troubleshooting | React Navigation
Before troubleshooting an issue, make sure that you have upgraded to the ... I get the warning "Non-serializable values were found in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found