app-bundler 0.2.17 → 0.2.18

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/lib/bundler.js CHANGED
@@ -12015,12 +12015,13 @@ var ResourceLoader;
12015
12015
  resources.forEach((res, i) => {
12016
12016
  let dep = deps[i];
12017
12017
  if (res.isMapped) {
12018
- let str = this.resource.content.replace(dep.url, res.url);
12019
- if (str === this.resource.content) {
12020
- throw new Error(`Mapped url was not replaced: ${dep.url}`);
12021
- }
12022
- this.resource.content = str;
12023
- dep.url = res.url;
12018
+ // do not replace in source
12019
+ // let str = this.resource.content.replace(dep.url, res.url);
12020
+ // if (str === this.resource.content) {
12021
+ // throw new Error(`Mapped url was not replaced: ${dep.url}`);
12022
+ // }
12023
+ // this.resource.content = str;
12024
+ // dep.url = res.url;
12024
12025
  }
12025
12026
  });
12026
12027
  this.resource.resources.push(...resources);
@@ -12509,7 +12510,7 @@ class Bundler extends atma_utils_1.class_EventEmitter {
12509
12510
  if (typeof content !== 'string') {
12510
12511
  content = JSON.stringify(content, null, 2);
12511
12512
  }
12512
- File_1.FileActions.writeFile(res.filename, content, { skipHooks: true });
12513
+ File_1.FileActions.writeFile(res.filename, content, { skipHooks: false });
12513
12514
  });
12514
12515
  return solution
12515
12516
  .assetsManager
package/lib/cli.js CHANGED
@@ -12017,12 +12017,13 @@ var ResourceLoader;
12017
12017
  resources.forEach((res, i) => {
12018
12018
  let dep = deps[i];
12019
12019
  if (res.isMapped) {
12020
- let str = this.resource.content.replace(dep.url, res.url);
12021
- if (str === this.resource.content) {
12022
- throw new Error(`Mapped url was not replaced: ${dep.url}`);
12023
- }
12024
- this.resource.content = str;
12025
- dep.url = res.url;
12020
+ // do not replace in source
12021
+ // let str = this.resource.content.replace(dep.url, res.url);
12022
+ // if (str === this.resource.content) {
12023
+ // throw new Error(`Mapped url was not replaced: ${dep.url}`);
12024
+ // }
12025
+ // this.resource.content = str;
12026
+ // dep.url = res.url;
12026
12027
  }
12027
12028
  });
12028
12029
  this.resource.resources.push(...resources);
@@ -12511,7 +12512,7 @@ class Bundler extends atma_utils_1.class_EventEmitter {
12511
12512
  if (typeof content !== 'string') {
12512
12513
  content = JSON.stringify(content, null, 2);
12513
12514
  }
12514
- File_1.FileActions.writeFile(res.filename, content, { skipHooks: true });
12515
+ File_1.FileActions.writeFile(res.filename, content, { skipHooks: false });
12515
12516
  });
12516
12517
  return solution
12517
12518
  .assetsManager
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-bundler",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "",
5
5
  "main": "lib/bundler.js",
6
6
  "bin": {