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

ES Modules based ComponentLoader #695

Open
bergie opened this issue Dec 7, 2020 · 1 comment
Open

ES Modules based ComponentLoader #695

bergie opened this issue Dec 7, 2020 · 1 comment
Milestone

Comments

@bergie
Copy link
Member

bergie commented Dec 7, 2020

Currently we have two ComponentLoader options:

  • CommonJS based loader used normally for Node.js NoFlo programs
  • "Hardcoded" component loader baked in with noflo-component-loader in Webpack builds

Nowadays browsers generally support Modules including dynamic imports. Node.js is also getting there. So, we should add a Module ComponentLoader option into NoFlo.

Using Modules would be especially interesting on browser, as it could allow loading components from various libraries as needed instead of having to have a "kitchen sink" build. A module loader should be possible to supply with a set of "fbp manifest" files telling where various components are available. It would then use dynamic loading to pull them in.

It would also open the door for making NoFlo available in tools like jsfiddle, as requested in #102 and #101

@bergie bergie added this to the NoFlo 2.0 milestone Dec 7, 2020
@bergie
Copy link
Member Author

bergie commented Dec 7, 2020

Once we have this in place, it might make sense to have a CI/CD process for NoFlo component libraries that would publish their component files and a fbp.json on GitHub Pages.

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

1 participant