You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Among programming languages, JavaScript has the biggest eco-system in the world. Hence, Brackets would benefit from this if extensions could load packages from npm. Right now, developers need to build obscure build-pipelines or make use of workarounds to load "external" code.
The text was updated successfully, but these errors were encountered:
idleberg
changed the title
Feature request: Use node_modules in extensions
Feature request: Support npm in extensions
Jun 23, 2022
Hi @idleberg . Thanks for the feature request. We are already working on a new extension manager based on NPM. Ie, ability to publish and load extensions directly from npm.
But to gain more clarity, can you describe the workflow or provide more details of the feature you have in mind.
When a user installs a package, Brackets runs npm install --omit=dev to satisfy dependencies (this is how Atom does it)
When a developer publishes or updates his extension, dependencies are included in the archive. I think this is how VSCode does it, but I wonder how that would work for Node packages with native bindings.
Either way, as a consequence an extension script could import modules as you would do in a standard NodeJS script. IIRC, Bracket exposes require that has no awareness of node_modules.
Among programming languages, JavaScript has the biggest eco-system in the world. Hence, Brackets would benefit from this if extensions could load packages from npm. Right now, developers need to build obscure build-pipelines or make use of workarounds to load "external" code.
The text was updated successfully, but these errors were encountered: