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

Please add npm install instructions #31

Open
quantuminformation opened this issue Sep 2, 2020 · 3 comments
Open

Please add npm install instructions #31

quantuminformation opened this issue Sep 2, 2020 · 3 comments

Comments

@quantuminformation
Copy link

quantuminformation commented Sep 2, 2020

I used npm i @marp-team/marpit-svg-polyfill but I'm getting

Uncaught SyntaxError: The requested module '/@modules/@marp-team/marpit-svg-polyfill?import' does not provide an export named 'webkit'

with code

import { webkit } from '@marp-team/marpit-svg-polyfill'

@yhatt
Copy link
Member

yhatt commented Sep 2, 2020

We had delayed writing down the detail of how to use because this polyfill was mainly used by Marp team. PR to add instructions how to install is welcome.

BTW, I've confirmed there are no wrongs in your import syntax. It seems that a build tool with ESM preventing named import. Which tool are you using to bundle?

@quantuminformation
Copy link
Author

quantuminformation commented Sep 2, 2020

ありがとうございました for your quick response, I am using Svite build on top of Vite

https://github.com/dominikg/svite

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

2 participants