Releases: vuejs/vue-loader
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.
v8.5.0
-
The
postcss
option now supports an object format that allows passing additional options to the PostCSS processor instance. This is useful when you are using PostCSS projects that relies on custom parser/stringifiers: (@esiao)postcss: { plugins: [...], // list of plugins options: { parser: sugarss // use sugarss parser } }
v8.4.0
New
- New option under
vue
in webpack config:template
. Use this option to pass options to the template rendering engine (via consolidate) if you are using a non-html templating language. (@bopjesvla)
Fixed
v8.3.0
- Update to use
[email protected]
now that babel plugins are self-hosted on[email protected]
as well.
v8.2.0
v8.1.0
v8.0.0
New
-
Template validation:
vue-loader
will now detect and report common syntax errors in Vue templates at compile time.Currently there are only 3 rules, but expect more to come in the future.
Fixed
vue-loader
now can properly handle language blocks that have a base indent - it will de-indent the entire block before passing to through other loaders, so that indent-sensitive pre-processors will no longer complain about it.
Breaking
vue-loader
now has a peer dependency onvue-style-loader
instead ofstyle-loader
. The fork fixes an issue where root-relative urls in CSS files are not loaded properly when CSS source map is enabled.