@onivoro/onix 20.0.53 → 20.0.54

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onivoro/onix",
3
- "version": "20.0.53",
3
+ "version": "20.0.54",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
package/src/index.d.ts CHANGED
@@ -13,3 +13,5 @@ export * from './inference/add-serve-targets.function';
13
13
  export * from './inference/build-onix-targets.function';
14
14
  export * from './inference/read-targets-cache.function';
15
15
  export * from './inference/write-targets-to-cache.function';
16
+ export * from './webpack/patch-nx-source-map-paths.function';
17
+ export * from './webpack/patch-nx-source-maps.plugin';
package/src/index.js CHANGED
@@ -18,4 +18,6 @@ tslib_1.__exportStar(require("./inference/add-serve-targets.function"), exports)
18
18
  tslib_1.__exportStar(require("./inference/build-onix-targets.function"), exports);
19
19
  tslib_1.__exportStar(require("./inference/read-targets-cache.function"), exports);
20
20
  tslib_1.__exportStar(require("./inference/write-targets-to-cache.function"), exports);
21
+ tslib_1.__exportStar(require("./webpack/patch-nx-source-map-paths.function"), exports);
22
+ tslib_1.__exportStar(require("./webpack/patch-nx-source-maps.plugin"), exports);
21
23
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../onix/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAA6D;AAApD,qHAAA,gBAAgB,OAAA;AAEzB,mEAAyC;AAEzC,2DAAiC;AAEjC,gFAAsD;AACtD,6FAAmE;AACnE,6FAAmE;AACnE,6EAAmD;AACnD,qFAA2D;AAE3D,iFAAuD;AACvD,kFAAwD;AACxD,gFAAsD;AACtD,iFAAuD;AACvD,kFAAwD;AACxD,kFAAwD;AACxD,sFAA4D"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../onix/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAA6D;AAApD,qHAAA,gBAAgB,OAAA;AAEzB,mEAAyC;AAEzC,2DAAiC;AAEjC,gFAAsD;AACtD,6FAAmE;AACnE,6FAAmE;AACnE,6EAAmD;AACnD,qFAA2D;AAE3D,iFAAuD;AACvD,kFAAwD;AACxD,gFAAsD;AACtD,iFAAuD;AACvD,kFAAwD;AACxD,kFAAwD;AACxD,sFAA4D;AAE5D,uFAA6D;AAC7D,gFAAsD"}
@@ -0,0 +1,9 @@
1
+ export type TFilenameTemplater = (info: {
2
+ absoluteResourcePath: string;
3
+ }) => string;
4
+ export type TWebpackConfig = {
5
+ output: {
6
+ devtoolModuleFilenameTemplate: TFilenameTemplater;
7
+ };
8
+ };
9
+ export declare function patchNxSourceMapPaths(config: TWebpackConfig): TWebpackConfig;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.patchNxSourceMapPaths = patchNxSourceMapPaths;
4
+ const node_path_1 = require("node:path");
5
+ function patchNxSourceMapPaths(config) {
6
+ config.output.devtoolModuleFilenameTemplate = function (info) {
7
+ const rel = (0, node_path_1.relative)(process.cwd(), info.absoluteResourcePath);
8
+ return `webpack:///./${rel}`;
9
+ };
10
+ return config;
11
+ }
12
+ ;
13
+ //# sourceMappingURL=patch-nx-source-map-paths.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patch-nx-source-map-paths.function.js","sourceRoot":"","sources":["../../../../onix/src/webpack/patch-nx-source-map-paths.function.ts"],"names":[],"mappings":";;AAKA,sDAMC;AAXD,yCAAqC;AAKrC,SAAgB,qBAAqB,CAAC,MAAsB;IACxD,MAAM,CAAC,MAAM,CAAC,6BAA6B,GAAG,UAAU,IAAI;QACxD,MAAM,GAAG,GAAG,IAAA,oBAAQ,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAC/D,OAAO,gBAAgB,GAAG,EAAE,CAAC;IACjC,CAAC,CAAC;IACF,OAAO,MAAM,CAAC;AAClB,CAAC;AAAA,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { TWebpackConfig } from "./patch-nx-source-map-paths.function";
2
+ export declare function patchNxSourceMaps(): (config: TWebpackConfig) => TWebpackConfig;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.patchNxSourceMaps = patchNxSourceMaps;
4
+ const patch_nx_source_map_paths_function_1 = require("./patch-nx-source-map-paths.function");
5
+ function patchNxSourceMaps() {
6
+ return (config) => {
7
+ (0, patch_nx_source_map_paths_function_1.patchNxSourceMapPaths)(config);
8
+ return config;
9
+ };
10
+ }
11
+ //# sourceMappingURL=patch-nx-source-maps.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patch-nx-source-maps.plugin.js","sourceRoot":"","sources":["../../../../onix/src/webpack/patch-nx-source-maps.plugin.ts"],"names":[],"mappings":";;AAEA,8CAKC;AAPD,6FAA6F;AAE7F,SAAgB,iBAAiB;IAC7B,OAAO,CAAC,MAAsB,EAAE,EAAE;QAC9B,IAAA,0DAAqB,EAAC,MAAM,CAAC,CAAC;QAC9B,OAAO,MAAM,CAAC;IAClB,CAAC,CAAA;AACL,CAAC"}