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

NPM installation browser support #990

Open
gyenabubakar opened this issue Nov 2, 2023 · 2 comments
Open

NPM installation browser support #990

gyenabubakar opened this issue Nov 2, 2023 · 2 comments

Comments

@gyenabubakar
Copy link

Is there a reason the NPM package only runs on the server side? Since you're able to build for CDN, it's possible to build it so it can be used in frontend projects using ES module imports, right?

I'm working on the frontend and I'd like to be able to import showdown in a Vue/React/Svelte app without putting a script:src in my HTML and also get intellisense.

@milkpotatoes
Copy link

use import showdown from 'showdown' to import showdown is supported

@wykopx
Copy link

wykopx commented Apr 3, 2024

use import showdown from 'showdown' to import showdown is supported

@milkpotatoes well actually it doesn't work:

Uncaught SyntaxError: The requested module 'showdown' does not provide an export named 'default'

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