Skip to content

v9.0.0

Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 14 Jun 22:40
· 254 commits to main since this release

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 make vue-loader ES2015-aware, simply install and configure babel-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. Since vue-loader already supports using PostCSS plugins, simply install autoprefixer and pass it to vue-loader as a PostCSS plugin.