carbon-design-system / carbon-components-svelte

Svelte implementation of the Carbon Design System
https://svelte.carbondesignsystem.com
Apache License 2.0
2.68k stars 261 forks source link

fix(exports): resolve imports with explicit *.js extension #1927

Closed metonym closed 6 months ago

metonym commented 6 months ago

Fixes #1925

Importing using the explicit .*js extension will throw an error as these are not included in the package exports map. Normally, this would be acceptable if it's not part of the API.

However, the optimizeImports Carbon preprocessor rewrites certain imports (e.g., breakpoints) to the source *.js file.

Internal server error: Failed to resolve import "carbon-components-svelte/src/Breakpoint/breakpoints.js" from "src/App.svelte".
metonym commented 6 months ago

Fixed in v0.84.0