How to use bundled module scripts in script tags? #1716
Replies: 4 comments 2 replies
-
Hey @FredKSchott. Any thoughts on this one? |
Beta Was this translation helpful? Give feedback.
-
Hey @drwpow @melissamcewen @stramel just pinging you all because the repository shows you as contributors. Is there any reason why FredKSchott is ignoring this thread? It's been open for a while and he's been answering all other discussions except for this one for some reason. Can any of you provide any insight? Would be greatly appreciate. Thanks! 👍 |
Beta Was this translation helpful? Give feedback.
-
Not currently possible, but agree that this should be supported. Spun up an issue to track: #2367 |
Beta Was this translation helpful? Give feedback.
-
info.plist |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use an npm package (e.g.
@my-company/bundled-package
) that contains a Stencil component in itsdist
directory inside a<script>
tag inside of my index.html file. The package already has a@my-company/bundled-package/dist/component.js
file that is already bundled and ready to be used in production. I've done this in my index.html:But snowpack doesn't install the
@my-company/bundled-package
or add thedist/component.js
file toweb_modules
. What should be in thesrc
there in order for snowpack to detect the package and makedist/component.js
file available in index.html?BTW I know that I can create a new JS file and use
import
, but I'd rather not have to create a whole new js file just use it in index.html.Beta Was this translation helpful? Give feedback.
All reactions