-
Notifications
You must be signed in to change notification settings - Fork 120
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
Import from node_modules with bare module specifiers #360
Comments
(Related #20, which also self-hosts libraries during build using |
I've started to experiment with this — sharing in #1101 (current status: "it works for 'earcut'"). |
Hello! I'm new to Framework, so perhaps I'm missing a nuance of importing modules. Was there a design decision to specifically not use |
@danmarshall Framework supports “implicit imports” for convenience, so you can e.g. start using Our intent is to support both implicit imports and explicit imports using a package manager (such as npm); that’s what this issue is about. So if you would rather manage your dependencies and versions explicitly using npm and |
Adding node_modules support would also make versioning of specific packages more transparent, as well as allow better typescript support if we can have it as a devDependency. |
We currently support
npm:
protocol imports for importing directly from npm (via the jsDelivr CDN). But we could also support importing from your localnode_modules
with bare module specifiers, using rollup to build an ES module as needed.The text was updated successfully, but these errors were encountered: