We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 352d3bb commit 1f2ae83Copy full SHA for 1f2ae83
packages/@vue/cli-plugin-typescript/index.js
@@ -1,4 +1,14 @@
1
module.exports = (api, options) => {
2
+ // pre-rc7 warning
3
+ try {
4
+ require('typescript/package.json')
5
+ } catch (e) {
6
+ throw new Error(
7
+ `"typescript" is now a peer dependency of "@vue/cli-plugin-typescript".\n` +
8
+ `To fix the build, explicitly install typescript in your project.`
9
+ )
10
+ }
11
+
12
const fs = require('fs')
13
const useThreads = process.env.NODE_ENV === 'production' && options.parallel
14
0 commit comments