File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ module.exports = class VueLoaderPlugin {
4646 // replace the original vue rule with our new constructed rule.
4747 rawRules . splice ( vueRuleIndex , 1 , constructedRule )
4848
49- // inject global pitcher (responsible for injecting CSS post loader)
49+ // inject global pitcher (responsible for injecting template compiler
50+ // loader & CSS post loader)
5051 rawRules . unshift ( {
5152 loader : require . resolve ( './pitch' )
5253 } )
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ const postcss = require('postcss')
33const trim = require ( './plugins/trim' )
44const scoped = require ( './plugins/scoped' )
55
6+ // This is a post loader that handles scoped CSS transforms.
7+ // Injected right before css-loader by the global pitcher (../pitch.js)
8+ // for any <style scoped> selection requests initiated from within vue files.
69module . exports = function ( source , map ) {
710 const cb = this . async ( )
811
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ const transformAssetUrl = require('./modules/assetUrl')
88const transformSrcset = require ( './modules/srcset' )
99const hotReloadAPIPath = require . resolve ( 'vue-hot-reload-api' )
1010
11+ // Loader that compiles raw template into JavaScript functions.
12+ // This is injected by the global pitcher (../pitch) for template
13+ // selection requests initiated from vue files.
14+ // Also handles lang="xxx" pre-processing via consolidate if necessary.
1115module . exports = function ( template ) {
1216 const loaderContext = this
1317 const query = qs . parse ( this . resourceQuery . slice ( 1 ) )
You can’t perform that action at this time.
0 commit comments