Skip to content

Always transform .es6 file #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bin/vue-build
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ var webpackConfig = {
loader: 'babel-loader',
exclude: [/node_modules/]
},
{
test: /\.es6$/,
loader: 'babel-loader'
},
{
test: /\.vue$/,
loader: 'vue-loader',
Expand Down Expand Up @@ -199,7 +203,7 @@ if (options.mount === undefined && !options.lib && /\.vue$/.test(options.entry))
// set an alias to the path of the component
// otherwise use it directly as webpack entry
if (options.mount) {
webpackConfig.entry.client.push(path.join(__dirname, '../lib/default-entry'))
webpackConfig.entry.client.push(path.join(__dirname, '../lib/default-entry.es6'))
webpackConfig.resolve.alias['your-tasteful-component'] = options.entry
} else {
webpackConfig.entry.client.push(options.entry)
Expand Down
File renamed without changes.