@ms-cloudpack/bundler-ori 0.2.5 → 0.2.6

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 +1 @@
1
- {"version":3,"file":"createOriCapabilities.d.ts","sourceRoot":"","sources":["../src/createOriCapabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,wBAAgB,qBAAqB,CACnC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC,GACvC,wCAAwC,CAAC,eAAe,CAAC,CAqB3D"}
1
+ {"version":3,"file":"createOriCapabilities.d.ts","sourceRoot":"","sources":["../src/createOriCapabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,wBAAgB,qBAAqB,CACnC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC,GACvC,wCAAwC,CAAC,eAAe,CAAC,CAwB3D"}
@@ -17,6 +17,9 @@ export function createOriCapabilities(bundlerOptions) {
17
17
  config.alias = mergeObjects([config.alias || {}, options]);
18
18
  return config;
19
19
  },
20
+ // This is a placeholder for the density capability. It doesn't do anything in the bundler.
21
+ // It's just a workaround for a post-bundle task. This will be replaced with 'plugins' in the future.
22
+ density: (config) => config,
20
23
  };
21
24
  }
22
25
  //# sourceMappingURL=createOriCapabilities.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createOriCapabilities.js","sourceRoot":"","sources":["../src/createOriCapabilities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,MAAM,UAAU,qBAAqB,CACnC,cAAwC;IAExC,OAAO;QACL,cAAc,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;YAClC,0DAA0D;YAC1D,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAE7F,MAAM,CAAC,MAAM,GAAG;gBACd,GAAG,MAAM,CAAC,MAAM;gBAChB,GAAG,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC;gBAChE,uDAAuD;gBACvD,GAAG,cAAc,CAAC,MAAM;aACzB,CAAC;YAEF,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;YACzB,uCAAuC;YACvC,MAAM,CAAC,KAAK,GAAG,YAAY,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;YAC3D,OAAO,MAAM,CAAC;QAChB,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import type { InternalBundlerCapabilityImplementations } from '@ms-cloudpack/common-types';\nimport type { OriBuildOptions } from './getOriOptions.ts';\nimport { mergeObjects } from '@ms-cloudpack/package-utilities';\n\nexport function createOriCapabilities(\n bundlerOptions: Partial<OriBuildOptions>,\n): InternalBundlerCapabilityImplementations<OriBuildOptions> {\n return {\n 'asset-inline': (config, options) => {\n // Make sure that the leading dot exists in the extensions\n const extensions = options.extensions.map((ext) => (!ext.startsWith('.') ? `.${ext}` : ext));\n\n config.loader = {\n ...config.loader,\n ...Object.fromEntries(extensions.map((ext) => [ext, 'dataurl'])),\n // bundler options take precedence in terms of loaders.\n ...bundlerOptions.loader,\n };\n\n return config;\n },\n alias: (config, options) => {\n // Add aliases to the ori configuration\n config.alias = mergeObjects([config.alias || {}, options]);\n return config;\n },\n };\n}\n"]}
1
+ {"version":3,"file":"createOriCapabilities.js","sourceRoot":"","sources":["../src/createOriCapabilities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,MAAM,UAAU,qBAAqB,CACnC,cAAwC;IAExC,OAAO;QACL,cAAc,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;YAClC,0DAA0D;YAC1D,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAE7F,MAAM,CAAC,MAAM,GAAG;gBACd,GAAG,MAAM,CAAC,MAAM;gBAChB,GAAG,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC;gBAChE,uDAAuD;gBACvD,GAAG,cAAc,CAAC,MAAM;aACzB,CAAC;YAEF,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;YACzB,uCAAuC;YACvC,MAAM,CAAC,KAAK,GAAG,YAAY,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;YAC3D,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,2FAA2F;QAC3F,qGAAqG;QACrG,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;KAC5B,CAAC;AACJ,CAAC","sourcesContent":["import type { InternalBundlerCapabilityImplementations } from '@ms-cloudpack/common-types';\nimport type { OriBuildOptions } from './getOriOptions.ts';\nimport { mergeObjects } from '@ms-cloudpack/package-utilities';\n\nexport function createOriCapabilities(\n bundlerOptions: Partial<OriBuildOptions>,\n): InternalBundlerCapabilityImplementations<OriBuildOptions> {\n return {\n 'asset-inline': (config, options) => {\n // Make sure that the leading dot exists in the extensions\n const extensions = options.extensions.map((ext) => (!ext.startsWith('.') ? `.${ext}` : ext));\n\n config.loader = {\n ...config.loader,\n ...Object.fromEntries(extensions.map((ext) => [ext, 'dataurl'])),\n // bundler options take precedence in terms of loaders.\n ...bundlerOptions.loader,\n };\n\n return config;\n },\n alias: (config, options) => {\n // Add aliases to the ori configuration\n config.alias = mergeObjects([config.alias || {}, options]);\n return config;\n },\n // This is a placeholder for the density capability. It doesn't do anything in the bundler.\n // It's just a workaround for a post-bundle task. This will be replaced with 'plugins' in the future.\n density: (config) => config,\n };\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/bundler-ori",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "An abstraction to bundle source code using ori.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,12 +14,12 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@ms-cloudpack/bundler-capabilities": "^0.2.1",
18
- "@ms-cloudpack/bundler-utilities": "^0.1.13",
19
- "@ms-cloudpack/common-types": "^0.23.4",
20
- "@ms-cloudpack/package-utilities": "^10.4.0",
17
+ "@ms-cloudpack/bundler-capabilities": "^0.2.2",
18
+ "@ms-cloudpack/bundler-utilities": "^0.1.14",
19
+ "@ms-cloudpack/common-types": "^0.23.5",
20
+ "@ms-cloudpack/package-utilities": "^10.4.1",
21
21
  "@ms-cloudpack/path-string-parsing": "^1.2.5",
22
- "@ms-cloudpack/path-utilities": "^2.7.54",
22
+ "@ms-cloudpack/path-utilities": "^2.7.55",
23
23
  "@ms-cloudpack/retry": "^0.1.2",
24
24
  "oribuild": "0.0.0-pre-alpha.15-2024082214-6bd86a4"
25
25
  },