DEV Community

loading...

Discussion on: Creating a package for Svelte

agustinl profile image
Agustín Author

From the svelte repository:

Your package.json has a "svelte" field pointing to src/index.js, which allows Svelte apps to import the source code directly, if they are using a bundler plugin like rollup-plugin-svelte or svelte-loader (where resolve.mainFields in your webpack config includes "svelte"). This is recommended.

👌

Thread Thread
khrome83 profile image
Zane Milakovic

Awesome! Ty.

Forem Open with the Forem app