From 59035546db7ff4b7020242ba994a5395aac92802 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 4 Jan 2021 01:46:31 -0500 Subject: [PATCH] fix: still let esbuild handle ts --- packages/plugin-vue-jsx/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/plugin-vue-jsx/index.js b/packages/plugin-vue-jsx/index.js index 51a1ca61739c94..d70f7395a48d9e 100644 --- a/packages/plugin-vue-jsx/index.js +++ b/packages/plugin-vue-jsx/index.js @@ -16,7 +16,11 @@ module.exports = function vueJsxPlugin(options = {}) { config(config) { return { - esbuild: false, + // only apply esbuild to ts files + // since we are handling jsx and tsx now + esbuild: { + include: /\.ts$/ + }, define: { __VUE_OPTIONS_API__: true, __VUE_PROD_DEVTOOLS__: false,