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

cannot resolve paths with extentions .min.js #90

Closed
misutkame opened this issue Jan 22, 2016 · 1 comment
Closed

cannot resolve paths with extentions .min.js #90

misutkame opened this issue Jan 22, 2016 · 1 comment

Comments

@misutkame
Copy link

I believe it should be able to find paths that end with .min.js

@reggi
Copy link

reggi commented Feb 22, 2018

You can currently do this by adding .min.js to extensions, this is not native require.resolve functionality.

➜  touch example.min.js
➜  node
> require.resolve('./example.min')
'/Users/treggi/Desktop/jest-example/example.min.js'
> require.resolve('./example')
Error: Cannot find module './example'
    at Function.Module._resolveFilename (module.js:542:15)
    at Function.resolve (internal/module.js:18:19)

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

No branches or pull requests

3 participants