app-bundler 0.2.12 → 0.2.14

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
@@ -5122,7 +5122,11 @@ function getVarId(resource) {
5122
5122
  return str.replace(/[^\w\d]/g, '_');
5123
5123
  }
5124
5124
  function getModuleVars(resources) {
5125
- return resources.map(getVarId).sort().map(x => `let ${x} = {};`).join('\n') + '\n';
5125
+ return resources
5126
+ .map(getVarId)
5127
+ .sort()
5128
+ .map(x => `var ${x} = {};`)
5129
+ .join('\n') + '\n';
5126
5130
  }
5127
5131
  //# sourceMappingURL=CommonJsBuilderSimplified.js.map
5128
5132
  //# sourceMappingURL=CommonJsBuilderSimplified.ts.map;
@@ -7909,7 +7913,6 @@ class DataInliner extends BaseRewriter_1.BaseRewriter {
7909
7913
  console.error(`No require found for ${dep.url} in ${resource.filename}`);
7910
7914
  return;
7911
7915
  }
7912
- let name = match.groups.name;
7913
7916
  let json = dep.resource.content;
7914
7917
  if (typeof json !== 'string') {
7915
7918
  json = JSON.stringify(json);
package/lib/cli.js CHANGED
@@ -5124,7 +5124,11 @@ function getVarId(resource) {
5124
5124
  return str.replace(/[^\w\d]/g, '_');
5125
5125
  }
5126
5126
  function getModuleVars(resources) {
5127
- return resources.map(getVarId).sort().map(x => `let ${x} = {};`).join('\n') + '\n';
5127
+ return resources
5128
+ .map(getVarId)
5129
+ .sort()
5130
+ .map(x => `var ${x} = {};`)
5131
+ .join('\n') + '\n';
5128
5132
  }
5129
5133
  //# sourceMappingURL=CommonJsBuilderSimplified.js.map
5130
5134
  //# sourceMappingURL=CommonJsBuilderSimplified.ts.map;
@@ -7911,7 +7915,6 @@ class DataInliner extends BaseRewriter_1.BaseRewriter {
7911
7915
  console.error(`No require found for ${dep.url} in ${resource.filename}`);
7912
7916
  return;
7913
7917
  }
7914
- let name = match.groups.name;
7915
7918
  let json = dep.resource.content;
7916
7919
  if (typeof json !== 'string') {
7917
7920
  json = JSON.stringify(json);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-bundler",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "",
5
5
  "main": "lib/bundler.js",
6
6
  "bin": {