Skip to content
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

Default with accept with regex doesn't transform to .ext #97

Closed
martypdx opened this issue Dec 16, 2015 · 1 comment
Closed

Default with accept with regex doesn't transform to .ext #97

martypdx opened this issue Dec 16, 2015 · 1 comment

Comments

@martypdx
Copy link

Bit of an edge case, but given file transformer defaults like:

someTransformer.defaults = {
    accept: /\..*/,
    ext: '.js'
};

Output won't get mapped correctly because this line:

const destname = ( options.ext && ~options.accept.indexOf( ext ) ) ? ...  : ... ;

is doing an indexOf check so regex fails

@Rich-Harris
Copy link
Contributor

fixed in 0.11.3 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants