Remove unnecessary svelte preprocess plugin from rollup

This commit is contained in:
Alice Gaudon 2021-05-11 15:08:10 +02:00
parent 8884f70a24
commit 911e64a6ae
1 changed files with 1 additions and 7 deletions

View File

@ -1,6 +1,5 @@
import path from "path";
import svelte from "rollup-plugin-svelte";
import {sveltePreprocess} from "svelte-preprocess/dist/autoProcess";
import cssOnlyRollupPlugin from "rollup-plugin-css-only";
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
@ -29,11 +28,6 @@ export default commandLineArgs => ({
},
plugins: [
svelte({
preprocess: sveltePreprocess({
typescript: {
tsconfigFile: 'tsconfig.svelte.json',
},
}),
compilerOptions: {
dev: !production,
hydratable: true,
@ -55,7 +49,7 @@ export default commandLineArgs => ({
commonjs(),
// Live reload in dev
!production && !!commandLineArgs.watch && livereloadRollupPlugin('public'),
!production && !!commandLineArgs.watch && livereloadRollupPlugin(publicDir),
// Minify in production
production && terser(),