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 {
46
46
// replace the original vue rule with our new constructed rule.
47
47
rawRules . splice ( vueRuleIndex , 1 , constructedRule )
48
48
49
- // inject global pitcher (responsible for injecting CSS post loader)
49
+ // inject global pitcher (responsible for injecting template compiler
50
+ // loader & CSS post loader)
50
51
rawRules . unshift ( {
51
52
loader : require . resolve ( './pitch' )
52
53
} )
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ const postcss = require('postcss')
3
3
const trim = require ( './plugins/trim' )
4
4
const scoped = require ( './plugins/scoped' )
5
5
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.
6
9
module . exports = function ( source , map ) {
7
10
const cb = this . async ( )
8
11
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ const transformAssetUrl = require('./modules/assetUrl')
8
8
const transformSrcset = require ( './modules/srcset' )
9
9
const hotReloadAPIPath = require . resolve ( 'vue-hot-reload-api' )
10
10
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.
11
15
module . exports = function ( template ) {
12
16
const loaderContext = this
13
17
const query = qs . parse ( this . resourceQuery . slice ( 1 ) )
You can’t perform that action at this time.
0 commit comments