@powerlines/plugin-webpack 0.5.128 → 0.5.129

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.
@@ -585,7 +585,7 @@ var PowerlinesContext = class PowerlinesContext {
585
585
  input: options.input,
586
586
  output: options.output
587
587
  });
588
- return this.emit(entryPath, code, (0, defu.default)((0, __stryke_helpers_omit.omit)(options, ["name"]), { meta: {
588
+ return this.emit(code, entryPath, (0, defu.default)((0, __stryke_helpers_omit.omit)(options, ["name"]), { meta: {
589
589
  type: "entry",
590
590
  properties: {
591
591
  name: options.name,
@@ -611,7 +611,7 @@ var PowerlinesContext = class PowerlinesContext {
611
611
  input: options?.input,
612
612
  output: options?.output
613
613
  });
614
- return this.emitSync(entryPath, code, (0, defu.default)((0, __stryke_helpers_omit.omit)(options, ["name"]), { meta: {
614
+ return this.emitSync(code, entryPath, (0, defu.default)((0, __stryke_helpers_omit.omit)(options, ["name"]), { meta: {
615
615
  type: "entry",
616
616
  properties: {
617
617
  name: options?.name,
@@ -630,7 +630,7 @@ var PowerlinesContext = class PowerlinesContext {
630
630
  * @param options - Optional write file options
631
631
  */
632
632
  async emitBuiltin(code, id, path, options = {}) {
633
- return this.emit(path ? (0, __stryke_path_is_type.isAbsolute)(path) ? path : (0, __stryke_path_join.joinPaths)(this.builtinsPath, path) : (0, __stryke_path_append.appendPath)(id, this.builtinsPath), code, (0, defu.default)(options, { meta: { type: "builtin" } }));
633
+ return this.emit(code, path ? (0, __stryke_path_is_type.isAbsolute)(path) ? path : (0, __stryke_path_join.joinPaths)(this.builtinsPath, path) : (0, __stryke_path_append.appendPath)(id, this.builtinsPath), (0, defu.default)(options, { meta: { type: "builtin" } }));
634
634
  }
635
635
  /**
636
636
  * Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
@@ -641,7 +641,7 @@ var PowerlinesContext = class PowerlinesContext {
641
641
  * @param options - Optional write file options
642
642
  */
643
643
  emitBuiltinSync(code, id, path, options = {}) {
644
- return this.emitSync(path ? (0, __stryke_path_is_type.isAbsolute)(path) ? path : (0, __stryke_path_join.joinPaths)(this.builtinsPath, path) : (0, __stryke_path_append.appendPath)(id, this.builtinsPath), code, (0, defu.default)(options, { meta: { type: "builtin" } }));
644
+ return this.emitSync(code, path ? (0, __stryke_path_is_type.isAbsolute)(path) ? path : (0, __stryke_path_join.joinPaths)(this.builtinsPath, path) : (0, __stryke_path_append.appendPath)(id, this.builtinsPath), (0, defu.default)(options, { meta: { type: "builtin" } }));
645
645
  }
646
646
  /**
647
647
  * Update the context using a new user configuration options
@@ -583,7 +583,7 @@ var PowerlinesContext = class PowerlinesContext {
583
583
  input: options.input,
584
584
  output: options.output
585
585
  });
586
- return this.emit(entryPath, code, defu$1(omit(options, ["name"]), { meta: {
586
+ return this.emit(code, entryPath, defu$1(omit(options, ["name"]), { meta: {
587
587
  type: "entry",
588
588
  properties: {
589
589
  name: options.name,
@@ -609,7 +609,7 @@ var PowerlinesContext = class PowerlinesContext {
609
609
  input: options?.input,
610
610
  output: options?.output
611
611
  });
612
- return this.emitSync(entryPath, code, defu$1(omit(options, ["name"]), { meta: {
612
+ return this.emitSync(code, entryPath, defu$1(omit(options, ["name"]), { meta: {
613
613
  type: "entry",
614
614
  properties: {
615
615
  name: options?.name,
@@ -628,7 +628,7 @@ var PowerlinesContext = class PowerlinesContext {
628
628
  * @param options - Optional write file options
629
629
  */
630
630
  async emitBuiltin(code, id, path, options = {}) {
631
- return this.emit(path ? isAbsolute(path) ? path : joinPaths(this.builtinsPath, path) : appendPath(id, this.builtinsPath), code, defu$1(options, { meta: { type: "builtin" } }));
631
+ return this.emit(code, path ? isAbsolute(path) ? path : joinPaths(this.builtinsPath, path) : appendPath(id, this.builtinsPath), defu$1(options, { meta: { type: "builtin" } }));
632
632
  }
633
633
  /**
634
634
  * Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
@@ -639,7 +639,7 @@ var PowerlinesContext = class PowerlinesContext {
639
639
  * @param options - Optional write file options
640
640
  */
641
641
  emitBuiltinSync(code, id, path, options = {}) {
642
- return this.emitSync(path ? isAbsolute(path) ? path : joinPaths(this.builtinsPath, path) : appendPath(id, this.builtinsPath), code, defu$1(options, { meta: { type: "builtin" } }));
642
+ return this.emitSync(code, path ? isAbsolute(path) ? path : joinPaths(this.builtinsPath, path) : appendPath(id, this.builtinsPath), defu$1(options, { meta: { type: "builtin" } }));
643
643
  }
644
644
  /**
645
645
  * Update the context using a new user configuration options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-webpack",
3
- "version": "0.5.128",
3
+ "version": "0.5.129",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to build projects using Webpack.",
6
6
  "repository": {
@@ -151,14 +151,14 @@
151
151
  "@stryke/types": "^0.10.29",
152
152
  "defu": "^6.1.4",
153
153
  "jiti": "^2.6.1",
154
- "powerlines": "^0.36.24",
154
+ "powerlines": "^0.36.25",
155
155
  "webpack": "^5.104.1"
156
156
  },
157
157
  "devDependencies": {
158
- "@powerlines/nx": "^0.11.50",
159
- "@powerlines/plugin-plugin": "^0.12.71",
158
+ "@powerlines/nx": "^0.11.51",
159
+ "@powerlines/plugin-plugin": "^0.12.72",
160
160
  "@types/node": "^24.10.4"
161
161
  },
162
162
  "publishConfig": { "access": "public" },
163
- "gitHead": "4b695d4b3476fd9dd79521f92258d52dab2b8d72"
163
+ "gitHead": "c1a4108ae6677e951e90e42f8d270959a401d1bd"
164
164
  }