File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,12 @@ function actuallyCompile(
176
176
parser : 'babel'
177
177
} )
178
178
} catch ( e ) {
179
+ if ( e . code === 'MODULE_NOT_FOUND' ) {
180
+ tips . push (
181
+ 'The `prettify` option is on, but the dependency `prettier` is not found.\n' +
182
+ 'Please either turn off `prettify` or manually install `prettier`.'
183
+ )
184
+ }
179
185
tips . push (
180
186
`Failed to prettify component ${ options . filename } template source after compilation.`
181
187
)
Original file line number Diff line number Diff line change 62
62
"merge-source-map" : " ^1.1.0" ,
63
63
"postcss" : " ^7.0.14" ,
64
64
"postcss-selector-parser" : " ^6.0.2" ,
65
- "prettier" : " ^1.18.2" ,
66
65
"source-map" : " ~0.6.1" ,
67
66
"vue-template-es2015-compiler" : " ^1.9.0"
67
+ },
68
+ "optionalDependencies" : {
69
+ "prettier" : " ^1.18.2"
68
70
}
69
71
}
You can’t perform that action at this time.
0 commit comments