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'