sveltejs / svelte-loader

Webpack loader for svelte components.
MIT License
594 stars 73 forks source link

docs: extend default configuration for mainFields and conditionNames #240

Closed non25 closed 1 month ago

non25 commented 1 month ago

Hello!

Some newer npm packages that rely on dynamic exports break with suggested resolve.mainFields and resolve.conditionNames configuration, since it lacks development mode and other things.

The '...' thing should re-add webpack's default configuration and make them all work good, while preferring svelte exports if any. :slightly_smiling_face: