Node / NPM support
luwes opened this issue · comments
Really cool project! I was hoping to use it for adding a simple way to do SSR in Media Chrome (muxinc/media-chrome#184)
It wasn't very clear from the docs, is it possible to get Ocean to work in Node as well? Right now it seems limited to Deno and web workers.
Is there a NPM package to download locally available? Thanks
Hi @luwes, indeed we do not support Node at the moment. As we rely on query params in the module ids it wouldn't be easy to support it if we wanted (and I don't particularly want to). Once Node has support for https modules Ocean should work with it easily.
@matthewp I am looking into adding shadow DOM support to https://github.com/WebReflection/linkedom. Do you think part of your work could be merged into linkedom to add better support for declarative shadow DOM or if not which files of ocean would be worth a read when adding shadow DOM support to linkedom?
@luwes Here is a tool that converts deno packages to NPM packages https://github.com/denoland/dnt
What work do you mean?
What work do you mean?
Declarative shadow DOM specific code like this could be part of linkedom e.g. as part of getInnerHTML()
WebReflection/linkedom#210. I wonder if there is more:
Line 40 in b179c92