-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Add Stencil JS Support #533
Comments
It is worth noting that edit: Looks like you can actually use stencil packages in codesandbox but you must append dist/esm to the package when importing. So do not do this: import { defineCustomElements } from "split-me"; instead do this: import { defineCustomElements } from "split-me/dist/esm"; Not sure why this is but I'd imagine stencil is either publishing empty commonjs package or codesandbox isn't picking them up. Here are the example projects using the |
Ah, that's interesting. It seems like the file mentioned on
Url: https://unpkg.com/split-me@0.3.1/dist/index.js I think that explains why it isn't a function, we prefer Regarding Stencil support, I agree! That would be great to add! This looks super interesting, so there is absolutely no build step? In that case maybe it makes sense to add a |
It depends who you are, if you are producing Stencil components then there is a build step. In order to consume them, you can do so without a build step. From their site:
So then producers of components like split-me have a build step that uses the stencil compiler. |
Good catch on the main. That is kinda what I was thinking. IMO they should just not have the main field if they aren't going put anything in that bundle. Alternatively then they could bring in npm.im/esm and just point to the esm bundle if the commonjs is going to be empty. Either way it seems like it is something they would need to implement, no? |
Interesting, I'm curious if the Stencil compiler works in the browser (or if not, if it works only with
I agree with that, we do fallback to |
If people are interested in taking a stab at it: we have a reference PR to add a template: #683 |
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
This issue has been automatically closed because there wasn't any activity after the previous notice or the stale label wasn't removed. |
It would be great to have Stencil support.
Repo: https://github.com/ionic-team/stencil
Getting started:
The text was updated successfully, but these errors were encountered: