Is there any possibility to configure rollup to import svelte components omitting .svelte extension ?
import MyComp from "path/MyComp"
MyComp file has .svelte extension
You can add a resolver to your configuration with @rollup/plugin-node-resolve:
rollup.config.js
const resolve = require('@rollup/plugin-node-resolve'); // add this to the other requires
return {
   ... // the usual things like input, output, ...
   plugins: [
       resolve({
          extensions: ['.svelte', '.js']
       }),
       svelte(),
       ... // any other plugin you are running
   ]
};
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With