diff --git a/packages/compiler-sfc/package.json b/packages/compiler-sfc/package.json index 229c2bea..12fbb090 100644 --- a/packages/compiler-sfc/package.json +++ b/packages/compiler-sfc/package.json @@ -3,7 +3,6 @@ "version": "3.0.9", "description": "@vue/compiler-sfc", "main": "dist/compiler-sfc.cjs.js", - "module": "dist/compiler-sfc.esm-browser.js", "types": "dist/compiler-sfc.d.ts", "files": [ "dist" diff --git a/packages/sfc-playground/vite.config.ts b/packages/sfc-playground/vite.config.ts index 7aea0edb..1f36226f 100644 --- a/packages/sfc-playground/vite.config.ts +++ b/packages/sfc-playground/vite.config.ts @@ -11,6 +11,11 @@ export default defineConfig({ define: { __COMMIT__: JSON.stringify(commit) }, + resolve: { + alias: { + '@vue/compiler-sfc': '@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js' + } + }, optimizeDeps: { exclude: ['consolidate'] }