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

Update templates.js #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

MiB3Avenger
Copy link

Updated package.json template to include type: "module".

This allows loading icons as ES Modules in NPM.

Bug found while testing SSR with Vite + Laravel + Inertia. This PR fixes the issue.

Solution to this issue was provided from: https://stackoverflow.com/a/40021867

Quick and easy fix.

image

Ps: This is my first time contributing by using a fork. I'm sorry if the description is not much detailed. If there are much easier ways to do the same thing while using oh vue icons that doesn't require a PR, please let me know. At the moment, I am using my own fork for my project, but I hope this allows others to make use of this fix.

Updated package.json template to include type: "module".

This allows loading Icons as ES Modules in NPM.
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

Successfully merging this pull request may close these issues.

1 participant