diff --git a/docs/index.html b/docs/index.html index 98e9585d..ce0d084b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -7,7 +7,6 @@ Carbon Components Svelte -
diff --git a/docs/src/index.js b/docs/src/index.js index 74ef981f..aba70f6a 100644 --- a/docs/src/index.js +++ b/docs/src/index.js @@ -1,8 +1,5 @@ import App from "./App.svelte"; -const app = new App({ - target: document.getElementById("app"), - hydrate: process.env.NODE_ENV === "production", -}); +const app = new App({ target: document.body }); export default app; diff --git a/docs/svelte.config.js b/docs/svelte.config.js index bc21505e..151b1167 100644 --- a/docs/svelte.config.js +++ b/docs/svelte.config.js @@ -7,7 +7,6 @@ const { format } = require("prettier"); const pkg = require("../package.json"); const fs = require("fs"); const Prism = require("prismjs"); -const { replace, postcss } = require("svelte-preprocess"); require("prism-svelte"); function createImports(source) { @@ -57,6 +56,7 @@ function createImports(source) { function plugin() { function visitor(node) { if ( + node.lang !== "svelte" && !node.value.startsWith("") && !node.value.match(/svx-ignore/g) @@ -125,19 +125,19 @@ const NODE_ENV = process.env.NODE_ENV || "production"; module.exports = { extensions: [".svelte", ".svx"], - hydratable: NODE_ENV === "production", preprocess: [ - require("svelte-preprocess")(), - replace([ - ["process.env.VERSION", JSON.stringify(pkg.version)], - ["process.env.NODE_ENV", JSON.stringify(NODE_ENV)], - ]), - postcss({ - plugins: [ - require("autoprefixer")({ - overrideBrowserslist: ["last 1 version", "ie >= 11"], - }), + require("svelte-preprocess")({ + replace: [ + ["process.env.VERSION", JSON.stringify(pkg.version)], + ["process.env.NODE_ENV", JSON.stringify(NODE_ENV)], ], + postcss: { + plugins: [ + require("autoprefixer")({ + overrideBrowserslist: ["last 1 version", "ie >= 11"], + }), + ], + }, }), mdsvex({ remarkPlugins: [plugin, slug, carbonify],