File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,14 @@ module.exports = function (content) {
9191 output += 'var disposed = false\n'
9292 }
9393
94- // add requires for styles
94+ // resolve <style> blocks into a `injectStyle` function
95+ // - normal mode: injectStyle contains requires to modules that directly
96+ // inject styles on import
97+ // - server mode: injectStyle contains required modules with injectors
98+ // (exposed as __inject__ by vue-style-loader) so that they
99+ // can be called with ssrContext
100+ // - shadow mode: injectStyle contains required modules with injectors and
101+ // injects to root component's shadowRoot.
95102 let cssModules
96103 if ( parts . styles . length ) {
97104 const needsExplicitInjection = isServer || isShadowMode
@@ -209,7 +216,7 @@ module.exports = function (content) {
209216 output += 'var __vue_template__ = null\n'
210217 }
211218
212- // template functional
219+ // < template functional>
213220 output += '/* template functional */\n'
214221 output +=
215222 'var __vue_template_functional__ = ' +
You can’t perform that action at this time.
0 commit comments