Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Use tsconfig.json in the dev-server
Browse files Browse the repository at this point in the history
Signed-off-by: Abdón Rodríguez Davila <[email protected]>
  • Loading branch information
abdonrd committed Jun 30, 2022
1 parent 5010435 commit 577d609
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web-dev-server.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import { fileURLToPath } from 'url';

import replace from '@rollup/plugin-replace';
import { esbuildPlugin } from '@web/dev-server-esbuild';
import { fromRollup } from '@web/dev-server-rollup';
Expand All @@ -17,7 +19,10 @@ export default {
exportConditions: ['development'],
},
plugins: [
esbuildPlugin({ ts: true }),
esbuildPlugin({
ts: true,
tsconfig: fileURLToPath(new URL('./tsconfig.json', import.meta.url)),
}),
...(NODE_ENV !== 'development'
? [
fromRollup(replace)({
Expand Down

0 comments on commit 577d609

Please sign in to comment.