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');
11
11
var deIndent = _interopDefault ( require ( 'de-indent' ) ) ;
12
12
var validateTemplate = _interopDefault ( require ( 'vue-template-validator' ) ) ;
13
13
var path = require ( 'path' ) ;
14
- var path__default = path [ 'default' ] ;
14
+ var path__default = _interopDefault ( path ) ;
15
15
var parse5 = _interopDefault ( require ( 'parse5' ) ) ;
16
16
var htmlMinifier = _interopDefault ( require ( 'html-minifier' ) ) ;
17
17
var chalk = _interopDefault ( require ( 'chalk' ) ) ;
Original file line number Diff line number Diff line change 1
1
import deIndent from 'de-indent'
2
2
import validateTemplate from 'vue-template-validator'
3
- import * as path from 'path'
3
+ import { relative } from 'path'
4
4
import parse5 from 'parse5'
5
5
import htmlMinifier from 'html-minifier'
6
6
import chalk from 'chalk'
@@ -135,7 +135,7 @@ export default class Compiler {
135
135
if ( ! lang ) {
136
136
const warnings = validateTemplate ( node . content , content )
137
137
if ( warnings ) {
138
- const relativePath = path . relative ( process . cwd ( ) , filePath )
138
+ const relativePath = relative ( process . cwd ( ) , filePath )
139
139
warnings . forEach ( function ( msg ) {
140
140
console . warn ( chalk . red ( `\n Error in ${ relativePath } :\n ${ msg } ` ) )
141
141
} )
You can’t perform that action at this time.
0 commit comments