Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit f75e2cc

Browse files
committed
Fix import bug
1 parent a0e313b commit f75e2cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/rollup-plugin-vue.common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var rollupPluginutils = require('rollup-pluginutils');
1111
var deIndent = _interopDefault(require('de-indent'));
1212
var validateTemplate = _interopDefault(require('vue-template-validator'));
1313
var path = require('path');
14-
var path__default = path['default'];
14+
var path__default = _interopDefault(path);
1515
var parse5 = _interopDefault(require('parse5'));
1616
var htmlMinifier = _interopDefault(require('html-minifier'));
1717
var chalk = _interopDefault(require('chalk'));

src/compiler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import deIndent from 'de-indent'
22
import validateTemplate from 'vue-template-validator'
3-
import * as path from 'path'
3+
import {relative} from 'path'
44
import parse5 from 'parse5'
55
import htmlMinifier from 'html-minifier'
66
import 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
})

0 commit comments

Comments
 (0)