Skip to content

Commit 436f742

Browse files
committed
perf(runtime): makes nuxt-ts transpileOnly
Closes nuxt#329
1 parent 629d618 commit 436f742

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/typescript-runtime/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const hooks: Hooks = {
1111
project: tsConfigPath,
1212
compilerOptions: {
1313
module: 'commonjs'
14-
}
14+
},
15+
transpileOnly: true
1516
})
1617
},
1718

packages/typescript-runtime/test/hooks.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ describe('run:before hook', () => {
1717
project: path.resolve('path', 'tsconfig.json'),
1818
compilerOptions: {
1919
module: 'commonjs'
20-
}
20+
},
21+
transpileOnly: true
2122
})
2223
})
2324

@@ -28,7 +29,8 @@ describe('run:before hook', () => {
2829
project: path.resolve('custom/tsconfig.json'),
2930
compilerOptions: {
3031
module: 'commonjs'
31-
}
32+
},
33+
transpileOnly: true
3234
})
3335
})
3436

@@ -39,7 +41,8 @@ describe('run:before hook', () => {
3941
project: path.resolve('custom/tsconfig.json'),
4042
compilerOptions: {
4143
module: 'commonjs'
42-
}
44+
},
45+
transpileOnly: true
4346
})
4447
})
4548
})

0 commit comments

Comments
 (0)