diff --git a/playground/vite.config.js b/playground/vite.config.js index 4025d882..b6b3841f 100644 --- a/playground/vite.config.js +++ b/playground/vite.config.js @@ -1,5 +1,10 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' +import { readFileSync } from 'fs'; + +const data = JSON.parse(readFileSync('../tsconfig.json', 'utf8')); + +let target = data.compilerOptions.target; // https://vitejs.dev/config/ export default defineConfig({ @@ -10,4 +15,7 @@ export default defineConfig({ allow: [ '..' ] } }, + build: { + target: target + }, })