Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

The implement of require.register function has some problem #30

Open
zhengxiaoyao0716 opened this issue Dec 12, 2017 · 1 comment
Open

Comments

@zhengxiaoyao0716
Copy link

From brunch/brunch#1771

@zhengxiaoyao0716
Copy link
Author

Well, I took a look for those source, it, emm, a bit ugly. Why we keep such a large size map named aliases? it useless.
What we need is just expand an suffix if user not given. so we just need to keep an ordered list of commonly suffix, and provide a new interface to allow plugin developer control them. Then, tried those suffix in turn in expandAlias function, that what NodeJS done .

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

No branches or pull requests

1 participant