Skip to content

Commit 8b6f748

Browse files
authored
always transform .es6 file (#299)
1 parent 1727e66 commit 8b6f748

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

bin/vue-build

+5-1
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)