Skip to content

Commit

Permalink
Chore: vite.config.jstargettsconfig.jsonに合わせる (#496)
Browse files Browse the repository at this point in the history
* Updated `vite.config.js`
  so that it matches the `tsconfig.json`

* Let `vite.config.js` sync with `tsconfig.json`
  • Loading branch information
MineCake147E authored Dec 4, 2023
1 parent 905637e commit 3e4e082
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions playground/vite.config.js
Original file line number Diff line number Diff line change
@@ -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({
Expand All @@ -10,4 +15,7 @@ export default defineConfig({
allow: [ '..' ]
}
},
build: {
target: target
},
})

0 comments on commit 3e4e082

Please sign in to comment.