Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Fix issue where ES6 won't compile with Jest and Neutrino v8 #640

Merged
merged 2 commits into from
Dec 21, 2017

Conversation

helfi92
Copy link
Member

@helfi92 helfi92 commented Dec 19, 2017

Fixes #638.

const jsNames = neutrino.regexFromExtensions(['js', 'jsx']);
const mediaNames = `\\.(${mediaExtensions.join('|')})$`;
const styleNames = `\\.(${['css', 'less', 'sass', 'scss'].join('|')})$`;
const jsNames = `\\.(${['js', 'jsx'].join('|')})$`;
Copy link
Member

Choose a reason for hiding this comment

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

We still want to use the stored Neutrino extensions, so probably something like:

`\\.(${[...neutrino.options.extensions].join('|')})$`;

Copy link
Member

Choose a reason for hiding this comment

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

I think we should also add a comment explaining why we're not using regexFromExtensions() :-)

@hshoff
Copy link

hshoff commented Dec 21, 2017

Applied this patch to my local install and it worked great with v8. Thanks for the quick fix. Excited to start using neutrino for vx

@eliperelman
Copy link
Member

Looks great!

@eliperelman eliperelman merged commit fde678d into neutrinojs:master Dec 21, 2017
timkelty pushed a commit that referenced this pull request Dec 21, 2017
* Fix issue where ES6 won't compile with Jest and Neutrino v8

* Use neutrino.options.extensions to cover additional extensions
timkelty pushed a commit to timkelty/neutrino that referenced this pull request Jan 17, 2018
…js#640)

* Fix issue where ES6 won't compile with Jest and Neutrino v8

* Use neutrino.options.extensions to cover additional extensions
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

4 participants