From df9a2c2be2d67e3de58ba103d96d9a42728fcb31 Mon Sep 17 00:00:00 2001 From: patak-dev Date: Mon, 27 Jun 2022 15:26:22 +0200 Subject: [PATCH] chore: missing function --- playground/ssr-vue/vite.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playground/ssr-vue/vite.config.js b/playground/ssr-vue/vite.config.js index ea90c1f0a4bde7..df509f63268a47 100644 --- a/playground/ssr-vue/vite.config.js +++ b/playground/ssr-vue/vite.config.js @@ -65,6 +65,9 @@ export default defineConfig({ // Example of a plugin that injects a helper from a virtual module that can // be used in renderBuiltUrl (function () { + const queryRE = /\?.*$/s + const hashRE = /#.*$/s + const cleanUrl = (url) => url.replace(hashRE, '').replace(queryRE, '') let config const virtualId = '\0virtual:ssr-vue-built-url'