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

Rename Lib to be commonjs compliant #37

Closed
vekexasia opened this issue Aug 15, 2016 · 1 comment
Closed

Rename Lib to be commonjs compliant #37

vekexasia opened this issue Aug 15, 2016 · 1 comment

Comments

@vekexasia
Copy link

Hello,

I was trying to use Decimal.js within a project which uses commonjs as module resolution.

Unfortunately the ".js" suffix makes the resolver go crazy as it thinks require('decimal.js'); is a require for a file within the folder.

You can read more about the spec here: http://wiki.commonjs.org/wiki/Modules/1.1

1. The "require" function accepts a module identifier. ...
... Module identifiers may not have file-name extensions like ".js".
@MikeMcl
Copy link
Owner

MikeMcl commented Aug 16, 2016

The library is unlikely to be renamed at this point.

What commonjs implementation are you using?

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