auklet 0.2.8 → 0.2.9

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,6 +17,7 @@ export declare class StyleCodeFactory {
17
17
  private toDevModuleImportSpecifier;
18
18
  private toDevExternalStyleSpecifier;
19
19
  private parsePackageStyleIdInRequest;
20
+ private toBrowserVirtualStyleSpecifier;
20
21
  private withDependencyPackage;
21
22
  private normalizeTopLevelImports;
22
23
  private isTopLevelImportRule;
@@ -171,7 +171,7 @@ export class StyleCodeFactory {
171
171
  ...dependencyResult,
172
172
  code: '',
173
173
  }, parsed.packageName));
174
- moduleStyleSpecifiers.push(result);
174
+ moduleStyleSpecifiers.push(this.toBrowserVirtualStyleSpecifier(parsed));
175
175
  continue;
176
176
  }
177
177
  const resolvedSpecifier = toDevDependencyImportSpecifier(context, result);
@@ -234,6 +234,9 @@ export class StyleCodeFactory {
234
234
  parsePackageStyleIdInRequest(id, cache) {
235
235
  return parsePackageStyleId(id, cache.getPackageNames());
236
236
  }
237
+ toBrowserVirtualStyleSpecifier(parsed) {
238
+ return `auklet-css:${parsed.packageName}/${parsed.stylePath}`;
239
+ }
237
240
  withDependencyPackage(result, packageName) {
238
241
  return {
239
242
  ...result,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auklet",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "type": "module",
5
5
  "author": "chentao.arthur",
6
6
  "description": "Build utilities for TypeScript packages and module CSS output.",