From 2e75f22a08ae84758b2887b733c812aaa4ce22df Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 30 Apr 2017 17:10:04 +0430 Subject: [PATCH] add options.ssr This allows setting custom vue renderer options. including: - shouldPreload(file, type) - runInNewContext - directives https://ssr.vuejs.org/en/api.html#renderer-options --- lib/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/build.js b/lib/build.js index f0a2a9e58d..59f46f1df8 100644 --- a/lib/build.js +++ b/lib/build.js @@ -486,10 +486,10 @@ function createRenderer (bundle, manifest) { maxAge: 1000 * 60 * 15 })) } - this.renderer = createBundleRenderer(bundle, { + this.renderer = createBundleRenderer(bundle, Object.assign({ cache: cacheConfig, clientManifest: manifest - }) + }, this.options.ssr)) this.renderToString = pify(this.renderer.renderToString) this.renderToStream = this.renderer.renderToStream }