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

ts-transform-paths doesn't work with module set to commonjs #1

Closed
filenwind opened this issue May 22, 2018 · 5 comments
Closed

ts-transform-paths doesn't work with module set to commonjs #1

filenwind opened this issue May 22, 2018 · 5 comments

Comments

@filenwind
Copy link

As title, set module as commonjs in compiler options, it won't replace path in require.

If I change module to esnext, it work great.

Can you take a look? Or I missing something?

Thank you!

@zerkalica
Copy link
Owner

zerkalica commented May 22, 2018

Yes, require not supported, do you now any ts transform examples with correct require detect?

@zerkalica
Copy link
Owner

Try 1.2.0

@filenwind
Copy link
Author

Hi, I tried, not working either.

.d.ts work fine, but .js is not.

This is the sample repo.

Thanks for your help!

@zerkalica
Copy link
Owner

zerkalica commented May 26, 2018

Check 1.2.2

@filenwind
Copy link
Author

It's work now! Thanks!

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