@utoo/pack 0.0.1-alpha.47 → 0.0.1-alpha.48

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.
package/cjs/types.d.ts CHANGED
@@ -86,7 +86,6 @@ export type TurbopackRuleCondition = {
86
86
  };
87
87
  export interface ModuleOptions {
88
88
  rules?: Record<string, TurbopackRuleConfigItem>;
89
- conditions?: Record<string, TurbopackRuleCondition>;
90
89
  }
91
90
  export interface ResolveOptions {
92
91
  alias?: Record<string, string | string[] | Record<string, string | string[]>>;
@@ -292,7 +292,9 @@ function compatResolve(webpackResolve) {
292
292
  ? alias.reduce((acc, cur) => Object.assign(acc, { [cur.name]: cur.alias }), {})
293
293
  : Object.entries(alias).reduce((acc, [k, v]) => {
294
294
  if (typeof v === "string") {
295
- Object.assign(acc, { [k]: v });
295
+ // Handle alias keys ending with $ by removing the $
296
+ const aliasKey = k.endsWith("$") ? k.slice(0, -1) : k;
297
+ Object.assign(acc, { [aliasKey]: v });
296
298
  }
297
299
  else {
298
300
  throw "non string alias value not supported yet";
package/esm/types.d.ts CHANGED
@@ -86,7 +86,6 @@ export type TurbopackRuleCondition = {
86
86
  };
87
87
  export interface ModuleOptions {
88
88
  rules?: Record<string, TurbopackRuleConfigItem>;
89
- conditions?: Record<string, TurbopackRuleCondition>;
90
89
  }
91
90
  export interface ResolveOptions {
92
91
  alias?: Record<string, string | string[] | Record<string, string | string[]>>;
@@ -289,7 +289,9 @@ function compatResolve(webpackResolve) {
289
289
  ? alias.reduce((acc, cur) => Object.assign(acc, { [cur.name]: cur.alias }), {})
290
290
  : Object.entries(alias).reduce((acc, [k, v]) => {
291
291
  if (typeof v === "string") {
292
- Object.assign(acc, { [k]: v });
292
+ // Handle alias keys ending with $ by removing the $
293
+ const aliasKey = k.endsWith("$") ? k.slice(0, -1) : k;
294
+ Object.assign(acc, { [aliasKey]: v });
293
295
  }
294
296
  else {
295
297
  throw "non string alias value not supported yet";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack",
3
- "version": "0.0.1-alpha.47",
3
+ "version": "0.0.1-alpha.48",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "exports": {
@@ -85,12 +85,12 @@
85
85
  },
86
86
  "repository": "git@github.com:utooland/utoo.git",
87
87
  "optionalDependencies": {
88
- "@utoo/pack-darwin-arm64": "0.0.1-alpha.47",
89
- "@utoo/pack-darwin-x64": "0.0.1-alpha.47",
90
- "@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.47",
91
- "@utoo/pack-linux-arm64-musl": "0.0.1-alpha.47",
92
- "@utoo/pack-linux-x64-gnu": "0.0.1-alpha.47",
93
- "@utoo/pack-linux-x64-musl": "0.0.1-alpha.47",
94
- "@utoo/pack-win32-x64-msvc": "0.0.1-alpha.47"
88
+ "@utoo/pack-darwin-arm64": "0.0.1-alpha.48",
89
+ "@utoo/pack-darwin-x64": "0.0.1-alpha.48",
90
+ "@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.48",
91
+ "@utoo/pack-linux-arm64-musl": "0.0.1-alpha.48",
92
+ "@utoo/pack-linux-x64-gnu": "0.0.1-alpha.48",
93
+ "@utoo/pack-linux-x64-musl": "0.0.1-alpha.48",
94
+ "@utoo/pack-win32-x64-msvc": "0.0.1-alpha.48"
95
95
  }
96
96
  }