diff --git a/rollup.config.js b/rollup.config.js index 9879b87a..07f3358d 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -3,17 +3,10 @@ import resolve from "@rollup/plugin-node-resolve"; import commonjs from "@rollup/plugin-commonjs"; import livereload from "rollup-plugin-livereload"; import { terser } from "rollup-plugin-terser"; -// library that helps you import in svelte with -// absolute paths, instead of -// import Component from "../../../../components/Component.svelte"; -// we will be able to say -// import Component from "components/Component.svelte"; import alias from "@rollup/plugin-alias"; import fs from "fs"; const production = !process.env.ROLLUP_WATCH; - -// configure aliases for absolute imports const aliases = alias({ resolve: [".svelte", ".js"], //optional, by default this will just look for .js files or folders entries: [ @@ -154,43 +147,19 @@ export default { }, plugins: [ svelte({ - // enable run-time checks when not in production dev: !production, - // we'll extract any component CSS out into - // a separate file - better for performance css: (css) => { css.write("bundle.css"); }, }), - - // If you have external dependencies installed from - // npm, you'll most likely need these plugins. In - // some cases you'll need additional configuration - - // consult the documentation for details: - // https://github.com/rollup/plugins/tree/master/packages/commonjs resolve({ browser: true, dedupe: ["svelte"], }), commonjs(), - - // In dev mode, call `npm run start` once - // the bundle has been generated !production && serve(), - - // Watch the `public` directory and refresh the - // browser on changes when not in production !production && livereload("public"), - - // If we're building for production (npm run build - // instead of npm run dev), minify production && terser(), - - // for absolut imports - // i.e., instead of - // import Component from "../../../../components/Component.svelte"; - // we will be able to say - // import Component from "components/Component.svelte"; aliases, ], watch: { diff --git a/src/views/Index.svelte b/src/views/Index.svelte index 666c0001..18eb6975 100644 --- a/src/views/Index.svelte +++ b/src/views/Index.svelte @@ -1,10 +1,7 @@