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

Fixed shiki import to work with "type": "module" #2628

Merged
merged 5 commits into from
Feb 22, 2022
Merged

Fixed shiki import to work with "type": "module" #2628

merged 5 commits into from
Feb 22, 2022

Conversation

JuanM04
Copy link
Contributor

@JuanM04 JuanM04 commented Feb 20, 2022

Changes

With a package.json with { "type": "module" }, shiki doesn't work. That because it doesn't have a default export (although their index.d.ts says the opposite)

Testing

Docs

@changeset-bot
Copy link

changeset-bot bot commented Feb 20, 2022

🦋 Changeset detected

Latest commit: 9965f63

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
astro Patch
@astrojs/markdown-remark Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) feat: markdown Related to Markdown (scope) labels Feb 20, 2022
Copy link
Member

@FredKSchott FredKSchott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@FredKSchott FredKSchott merged commit 9b7e2ab into withastro:main Feb 22, 2022
@github-actions github-actions bot mentioned this pull request Feb 22, 2022
@JuanM04 JuanM04 deleted the shiki-import branch February 22, 2022 17:07
SiriousHunter pushed a commit to SiriousHunter/astro that referenced this pull request Feb 3, 2023
* Fixed shiki import to work with "type": "module"

* Changeset

* Separated types import

* Add "* as" to type import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: markdown Related to Markdown (scope) pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants