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

fix(exports): include additional exports in package.json #316

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

metonym
Copy link
Owner

@metonym metonym commented Jan 5, 2024

Fixes #315

package.json#exports needs additional entries to the library code.

This fixes resolution of the following import methods:

// Base import for styles/languages
import { _default } from "svelte-highlight/styles";
import { _1c } from "svelte-highlight/languages";

// Explicit index
import { _default } from "svelte-highlight/styles/index";
import { typescript } from "svelte-highlight/languages/index";

// Explicit extension
import lang from "svelte-highlight/languages/1c.js"
import style from "svelte-highlight/styles/3024.js";

@metonym metonym changed the title fix(exports): include additions exports in package.json fix(exports): include additional exports in package.json Jan 5, 2024
@metonym metonym merged commit 12e7830 into master Jan 5, 2024
1 check passed
@metonym metonym deleted the fix-exports-directories branch January 5, 2024 05:13
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.

regression: build fails with SK 2.0 and svelte-highlight >=7.4.3
1 participant