This repository was archived by the owner on Jan 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ var rollupPluginutils = require('rollup-pluginutils');
1111var deIndent = _interopDefault ( require ( 'de-indent' ) ) ;
1212var validateTemplate = _interopDefault ( require ( 'vue-template-validator' ) ) ;
1313var path = require ( 'path' ) ;
14- var path__default = path [ 'default' ] ;
14+ var path__default = _interopDefault ( path ) ;
1515var parse5 = _interopDefault ( require ( 'parse5' ) ) ;
1616var htmlMinifier = _interopDefault ( require ( 'html-minifier' ) ) ;
1717var chalk = _interopDefault ( require ( 'chalk' ) ) ;
Original file line number Diff line number Diff line change 11import deIndent from 'de-indent'
22import validateTemplate from 'vue-template-validator'
3- import * as path from 'path'
3+ import { relative } from 'path'
44import parse5 from 'parse5'
55import htmlMinifier from 'html-minifier'
66import chalk from 'chalk'
@@ -135,7 +135,7 @@ export default class Compiler {
135135 if ( ! lang ) {
136136 const warnings = validateTemplate ( node . content , content )
137137 if ( warnings ) {
138- const relativePath = path . relative ( process . cwd ( ) , filePath )
138+ const relativePath = relative ( process . cwd ( ) , filePath )
139139 warnings . forEach ( function ( msg ) {
140140 console . warn ( chalk . red ( `\n Error in ${ relativePath } :\n ${ msg } ` ) )
141141 } )
You can’t perform that action at this time.
0 commit comments