auklet 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,7 +17,6 @@ export declare class StyleCodeFactory {
|
|
|
17
17
|
private toDevModuleImportSpecifier;
|
|
18
18
|
private toDevExternalStyleSpecifier;
|
|
19
19
|
private parsePackageStyleIdInRequest;
|
|
20
|
-
private toBrowserVirtualStyleSpecifier;
|
|
21
20
|
private withDependencyPackage;
|
|
22
21
|
private normalizeTopLevelImports;
|
|
23
22
|
private isTopLevelImportRule;
|
|
@@ -167,11 +167,7 @@ export class StyleCodeFactory {
|
|
|
167
167
|
const parsed = this.parsePackageStyleIdInRequest(result, cache);
|
|
168
168
|
if (parsed) {
|
|
169
169
|
const dependencyResult = await this.createPackageStyleCode(parsed, cache);
|
|
170
|
-
moduleStyleResults.push(this.withDependencyPackage(
|
|
171
|
-
...dependencyResult,
|
|
172
|
-
code: '',
|
|
173
|
-
}, parsed.packageName));
|
|
174
|
-
moduleStyleSpecifiers.push(this.toBrowserVirtualStyleSpecifier(parsed));
|
|
170
|
+
moduleStyleResults.push(this.withDependencyPackage(dependencyResult, parsed.packageName));
|
|
175
171
|
continue;
|
|
176
172
|
}
|
|
177
173
|
const resolvedSpecifier = toDevDependencyImportSpecifier(context, result);
|
|
@@ -234,9 +230,6 @@ export class StyleCodeFactory {
|
|
|
234
230
|
parsePackageStyleIdInRequest(id, cache) {
|
|
235
231
|
return parsePackageStyleId(id, cache.getPackageNames());
|
|
236
232
|
}
|
|
237
|
-
toBrowserVirtualStyleSpecifier(parsed) {
|
|
238
|
-
return `auklet-css:${parsed.packageName}/${parsed.stylePath}`;
|
|
239
|
-
}
|
|
240
233
|
withDependencyPackage(result, packageName) {
|
|
241
234
|
return {
|
|
242
235
|
...result,
|