Skip to content

Commit a662bea

Browse files
authored
Use absolute path for component alias, fixed vuejs#319 (vuejs#320)
* Use absolute path for component alias * use path.resolve
1 parent d7fcf2d commit a662bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/vue-build

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ if (options.mount === undefined && !options.lib && /\.vue$/.test(options.entry))
203203
// otherwise use it directly as webpack entry
204204
if (options.mount) {
205205
webpackConfig.entry.client.push(path.join(__dirname, '../lib/default-entry.es6'))
206-
webpackConfig.resolve.alias['your-tasteful-component'] = options.entry
206+
webpackConfig.resolve.alias['your-tasteful-component'] = path.resolve(process.cwd(), options.entry)
207207
} else {
208208
webpackConfig.entry.client.push(options.entry)
209209
}

0 commit comments

Comments
 (0)