Add a globals.registerWebpackModules that can register dynamic require webpack context (#5087)

This commit is contained in:
Panayot Cankov
2017-11-22 13:02:42 +02:00
committed by GitHub
parent 71c50b2cb1
commit 255fedac83
5 changed files with 50 additions and 2 deletions

View File

@@ -508,7 +508,7 @@ export class StyleScope {
}
this._reset();
let parsedCssSelectors = cssString ? CSSSource.fromSource(cssString, this._keyframes, cssFileName) : CSSSource.fromFile(cssFileName, this._keyframes);
let parsedCssSelectors = cssString ? CSSSource.fromSource(cssString, this._keyframes, cssFileName) : CSSSource.fromURI(cssFileName, this._keyframes);
this._css = this._css + parsedCssSelectors.source;
this._localCssSelectors.push.apply(this._localCssSelectors, parsedCssSelectors.selectors);
this._localCssSelectorVersion++;