From 5c5076577566869ae5e6691be25ff87dc98c4eba Mon Sep 17 00:00:00 2001 From: patak-dev Date: Thu, 12 May 2022 15:53:23 +0200 Subject: [PATCH 1/2] test: missing type module in ssr-vue package --- playground/ssr-vue/example-external-component/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/playground/ssr-vue/example-external-component/package.json b/playground/ssr-vue/example-external-component/package.json index 302e7fd4d9ff05..f1fd45bc5655ad 100644 --- a/playground/ssr-vue/example-external-component/package.json +++ b/playground/ssr-vue/example-external-component/package.json @@ -2,5 +2,6 @@ "name": "example-external-component", "private": true, "version": "0.0.0", + "type": "module", "main": "index.js" } From 92c8b73dc46b68fa653ebc5f6d9be77d4c79d57c Mon Sep 17 00:00:00 2001 From: patak-dev Date: Fri, 13 May 2022 11:38:57 +0200 Subject: [PATCH 2/2] test: add to ssr.noExternal --- playground/ssr-vue/vite.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/playground/ssr-vue/vite.config.js b/playground/ssr-vue/vite.config.js index 0adfa551b3b134..03277fd6560551 100644 --- a/playground/ssr-vue/vite.config.js +++ b/playground/ssr-vue/vite.config.js @@ -45,5 +45,11 @@ module.exports = { ], build: { minify: false + }, + ssr: { + noExternal: [ + // this package has uncompiled .vue files + 'example-external-component' + ] } }