Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b6f748

Browse files
authored
always transform .es6 file (vuejs#299)
1 parent1727e66 commit8b6f748

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎bin/vue-build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ var webpackConfig = {
157157
loader:'babel-loader',
158158
exclude:[/node_modules/]
159159
},
160+
{
161+
test:/\.es6$/,
162+
loader:'babel-loader'
163+
},
160164
{
161165
test:/\.vue$/,
162166
loader:'vue-loader',
@@ -198,7 +202,7 @@ if (options.mount === undefined && !options.lib && /\.vue$/.test(options.entry))
198202
// set an alias to the path of the component
199203
// otherwise use it directly as webpack entry
200204
if(options.mount){
201-
webpackConfig.entry.client.push(path.join(__dirname,'../lib/default-entry'))
205+
webpackConfig.entry.client.push(path.join(__dirname,'../lib/default-entry.es6'))
202206
webpackConfig.resolve.alias['your-tasteful-component']=options.entry
203207
}else{
204208
webpackConfig.entry.client.push(options.entry)
File renamed without changes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp