@ms-cloudpack/bundler-utilities 0.3.6 → 0.3.7

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.
@@ -1,4 +1,10 @@
1
- /** Default ES syntax level. 2022 is the minimum for top-level await. */
1
+ /**
2
+ * Default ES syntax level. 2022 is the minimum for top-level await.
3
+ *
4
+ * ES2023 is probably fine for browsers (definitely for development), and Node 20 also supports it.
5
+ * But for some reason, rspack only lists up to ES2022 in its valid targets (and none of the
6
+ * ES2023 features are obviously relevant for a bundler), so stick with ES2022 for now.
7
+ */
2
8
  export declare const defaultTargetSyntax = "es2022";
3
9
  export declare const base64AssetExtensions: string[];
4
10
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAE5C,eAAO,MAAM,qBAAqB,UAkBjC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAE5C,eAAO,MAAM,qBAAqB,UAkBjC,CAAC"}
package/lib/constants.js CHANGED
@@ -1,4 +1,10 @@
1
- /** Default ES syntax level. 2022 is the minimum for top-level await. */
1
+ /**
2
+ * Default ES syntax level. 2022 is the minimum for top-level await.
3
+ *
4
+ * ES2023 is probably fine for browsers (definitely for development), and Node 20 also supports it.
5
+ * But for some reason, rspack only lists up to ES2022 in its valid targets (and none of the
6
+ * ES2023 features are obviously relevant for a bundler), so stick with ES2022 for now.
7
+ */
2
8
  export const defaultTargetSyntax = 'es2022';
3
9
  export const base64AssetExtensions = [
4
10
  '.aac',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAE5C,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,QAAQ;IACR,MAAM;CACP,CAAC","sourcesContent":["/** Default ES syntax level. 2022 is the minimum for top-level await. */\nexport const defaultTargetSyntax = 'es2022';\n\nexport const base64AssetExtensions = [\n '.aac',\n '.bmp',\n '.gif',\n '.jpeg',\n '.jpg',\n '.mp3',\n '.mp4',\n '.ogg',\n '.otf',\n '.png',\n '.svg',\n '.ttf',\n '.wav',\n '.webp',\n '.woff',\n '.woff2',\n '.eot',\n];\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAE5C,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,QAAQ;IACR,MAAM;CACP,CAAC","sourcesContent":["/**\n * Default ES syntax level. 2022 is the minimum for top-level await.\n *\n * ES2023 is probably fine for browsers (definitely for development), and Node 20 also supports it.\n * But for some reason, rspack only lists up to ES2022 in its valid targets (and none of the\n * ES2023 features are obviously relevant for a bundler), so stick with ES2022 for now.\n */\nexport const defaultTargetSyntax = 'es2022';\n\nexport const base64AssetExtensions = [\n '.aac',\n '.bmp',\n '.gif',\n '.jpeg',\n '.jpg',\n '.mp3',\n '.mp4',\n '.ogg',\n '.otf',\n '.png',\n '.svg',\n '.ttf',\n '.wav',\n '.webp',\n '.woff',\n '.woff2',\n '.eot',\n];\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/bundler-utilities",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Utilities used by multiple bundlers.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,9 +15,9 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@ms-cloudpack/json-utilities": "^0.1.10",
18
- "@ms-cloudpack/package-utilities": "^12.3.11",
18
+ "@ms-cloudpack/package-utilities": "^12.3.12",
19
19
  "@ms-cloudpack/path-string-parsing": "^1.2.7",
20
- "@ms-cloudpack/path-utilities": "^3.1.5",
20
+ "@ms-cloudpack/path-utilities": "^3.1.6",
21
21
  "get-tsconfig": "^4.7.2",
22
22
  "tsconfig-to-swcconfig": "^2.7.0"
23
23
  },