Remove unnecessary svelte preprocess plugin from rollup
This commit is contained in:
parent
8884f70a24
commit
911e64a6ae
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user