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-loaderdoesn't exist as a peer dependency,vue-loaderwill not attempt to transpile content inside<script>tags in Vue components (they are treated as plain ES5). To makevue-loaderES2015-aware, simply install and configurebabel-loaderand other babel related packages as you normally would.vue-loaderwill 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-loaderalready supports using PostCSS plugins, simply installautoprefixerand pass it tovue-loaderas a PostCSS plugin.