From 79be2fc1772dd3a280f5ffc4e59b3db942a2f887 Mon Sep 17 00:00:00 2001 From: Kieran Boyle Date: Thu, 1 Apr 2021 16:37:05 -0700 Subject: [PATCH 1/2] add ssr support --- rollup.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 2a5fe8d..9ae8e4e 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -24,11 +24,12 @@ export default () => { svelte({ compilerOptions: { dev: !production, + generate: 'ssr', cssHash({ hash, css, name, filename }) { return `viewable-${hash(css)}`; } }, - emitCss: false, + emitCss: false }), babel({ "extensions": [".js", ".mjs", ".html", ".svelte"], From c25eb38815b847787c443fca4492b3a0bf2dd081 Mon Sep 17 00:00:00 2001 From: Kieran Boyle Date: Thu, 1 Apr 2021 16:41:38 -0700 Subject: [PATCH 2/2] update version with patch for ssr --- docs/public/global.css | 8 +++----- package.json | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/public/global.css b/docs/public/global.css index 611c111..c803e2e 100644 --- a/docs/public/global.css +++ b/docs/public/global.css @@ -4,12 +4,10 @@ html { } body { - position: relative; - margin: 0; - /* padding: 8px; */ box-sizing: border-box; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, - 'Helvetica Neue', sans-serif; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,'Helvetica Neue', sans-serif; + margin: 0; + position: relative; } html, diff --git a/package.json b/package.json index ec3bd26..8f460fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@svelte-plugins/viewable", - "version": "0.1.2", + "version": "0.1.3", "license": "MIT", "description": "A simple rule-based approach to tracking element viewability.", "author": "Kieran Boyle (https://github.com/dysfunc)",