fremtind / jokul

Jøkul er et designsystem utviklet av Fremtind.
https://jokul.fremtind.no
MIT License
65 stars 31 forks source link

Kan vi forenkle Jokul/package.json? #4268

Closed kennidenni closed 2 weeks ago

kennidenni commented 2 weeks ago

Er ikke sikker på om det vil fungere, men i dag skrives koden slik: "./components/breadcrumb": { "import": { "default": "./build/es/components/breadcrumb/index.js", "types": "./build/es/components/breadcrumb/index.d.ts" }, "require": { "default": "./build/cjs/components/breadcrumb/index.cjs", "types": "./build/cjs/components/breadcrumb/index.d.cts" } },

Er det mulig å endre til denne varianten? "./components/autosuggest": { "import": { "types": "./build/es/components/autosuggest/index.d.ts" }, "require": { "types": "./build/cjs/components/autosuggest/index.d.cts" }, "default": "./build/es/components/autosuggest/index.js" },

eller til denne varianten? "./components/accordion": { "import": "./build/es/components/accordion/index.d.ts", "require": "./build/cjs/components/accordion/index.d.cts", "default": "./build/es/components/accordion/index.js" },

kennidenni commented 2 weeks ago

Nevermind, så nå at default ikke var lik