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

fix(importer): support nodejs module default main file "index.js" when "main" is missing in package.json #842

Merged
merged 1 commit into from
Apr 29, 2018
Merged

Conversation

3cp
Copy link
Member

@3cp 3cp commented Mar 10, 2018

When "main" is missing in package.json, nodejs uses
default main file "index.js", it will complain when
default main file is missing.
This fix supports nodejs module with missing "main"
in package.json. It solves importing issue on nodejs
module "date-fns". #831 is related, that PR solves
tracing issue on "date-fns".

…n "main" is missing in package.json

When "main" is missing in package.json, nodejs uses
default main file "index.js", it will complain when
default main file is missing.
This fix supports nodejs module with missing "main"
in package.json. It solves importing issue on nodejs
module "date-fns". #831 is related, that PR solves
tracing issue on "date-fns".
@3cp
Copy link
Member Author

3cp commented Mar 10, 2018

This fix also means amodro strategy will import absolutely any nodejs module. There would not be any nodejs module in the field with missing default main file, because those malfunctioned modules would not reach your ears.

Whether we can trace what we imported, that is another problem.

@JeroenVinke JeroenVinke merged commit 2801e1b into aurelia:master Apr 29, 2018
@3cp 3cp deleted the fix-missing-main-on-node-module branch July 26, 2018 22:45
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

Successfully merging this pull request may close these issues.

2 participants