sveltejs/rollup-plugin-svelte

svelte+typeScript build error,The keyword 'interface' is reserved

hengshanMWC opened this issue · 3 comments

HI~

build error

I want to do an exercise, but I always report mistakes when packing

Steps to Reproduce

  • git clone git@github.com:hengshanMWC/svelte-popup.git
  • npm i
  • npm run build:npm

image

bluwy commented

You didn't pass the preprocess option in the rollup config. You can import svelte.config.js and pass it like:

import svelteConfig from './svelte.config.js`

// ...

svelte({
  preprocess: svelteConfig.preprocess
})

Thanks @bluwy for the explanation, closing as this is not related to a bug in this plugin.

Thanks. @bluwy