v9.0.0
Note
This release is not tagged as latest
on npm. You will need to explicitly install it as vue-loader@next
.
New
- Supports Vue.js 2.0!
Breaking Changes
-
Does not work with Vue.js core 1.x, due to the different template compilation requirements.
-
Babel no longer required as peer depdendency
With this change, npm will no longer complain about missing peer dependencies if you happen to use, say, CoffeeScript or plain ES5 in your vue components and don't actually need Babel.
If
babel-loader
doesn't exist as a peer dependency,vue-loader
will not attempt to transpile content inside<script>
tags in Vue components (they are treated as plain ES5). To makevue-loader
ES2015-aware, simply install and configurebabel-loader
and other babel related packages as you normally would.vue-loader
will automatically detect their presence and applies babel transformation to Vue components. -
Removed CSS autoprefixing
This is not strictly within the scope of
vue-loader
, and in most cases you will need to configure it with targeted browsers anyway. Many PostCSS-based frameworks have this included as well. Sincevue-loader
already supports using PostCSS plugins, simply installautoprefixer
and pass it tovue-loader
as a PostCSS plugin.