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

Commit 577d609

Browse files
committed
Use tsconfig.json in the dev-server
Signed-off-by: Abdón Rodríguez Davila <[email protected]>
1 parent 5010435 commit 577d609

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

web-dev-server.config.mjs

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8+
import { fileURLToPath } from 'url';
9+
810
import replace from '@rollup/plugin-replace';
911
import { esbuildPlugin } from '@web/dev-server-esbuild';
1012
import { fromRollup } from '@web/dev-server-rollup';
@@ -17,7 +19,10 @@ export default {
1719
exportConditions: ['development'],
1820
},
1921
plugins: [
20-
esbuildPlugin({ ts: true }),
22+
esbuildPlugin({
23+
ts: true,
24+
tsconfig: fileURLToPath(new URL('./tsconfig.json', import.meta.url)),
25+
}),
2126
...(NODE_ENV !== 'development'
2227
? [
2328
fromRollup(replace)({

0 commit comments

Comments
 (0)