Skip to content

【Suggest】node_modules fallback to unpkg #1

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

Open
YikaJ opened this issue Jan 7, 2020 · 1 comment
Open

【Suggest】node_modules fallback to unpkg #1

YikaJ opened this issue Jan 7, 2020 · 1 comment

Comments

@YikaJ
Copy link

YikaJ commented Jan 7, 2020

There are npm modules in unpkg which can be fetched by ajax. Maybe when oneClick can't find target module in /node_modules/, it can try to get it in unpkg.

For example, try to require('react')
https://unpkg.com/react

@jordwalke
Copy link
Owner

It is not possible to fetch modules asynchronously when running from the local file system. Is this what you meant?

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