Вы можете добавить распознаватель к вашей конфигурации с помощью 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
]
};