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

Node / NPM support #41

Open
luwes opened this issue Mar 27, 2022 · 5 comments
Open

Node / NPM support #41

luwes opened this issue Mar 27, 2022 · 5 comments

Comments

@luwes
Copy link

luwes commented Mar 27, 2022

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

@matthewp
Copy link
Owner

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.

@ttraenkler
Copy link

@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?

@ttraenkler
Copy link

@luwes Here is a tool that converts deno packages to NPM packages https://github.com/denoland/dnt

@matthewp
Copy link
Owner

What work do you mean?

@ttraenkler
Copy link

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:

yield `<template shadowroot="open">`;

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

3 participants