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
transpile code in .vue file to ES5 #605
Comments
and,i don't have a |
@zzzgit never tried, but... did you try: module.exports = {
// other options...
module: {
// module.rules is the same as module.loaders in 1.x
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
// vue-loader options goes here
options: {
loaders: {
'js': 'babel-loader'
}
}
}
]
}
} It is documented in http://vue-loader.vuejs.org/en/configurations/advanced.html |
Please make sure to read the Issue Reporting Guidelines before opening new issues. The issue list only accepts bug reports and feature requests. Questions should be posted to the Gitter chat room, forum or StackOverflow. As @barraponto mentioned, You can configure at vue options. see the vue-loader docs and babel-loader docs Thanks. |
only code in the
.js
file could be transpiled to ES5code in
.vue
file will not be transpiledwhy?
The text was updated successfully, but these errors were encountered: