app-bundler 0.2.13 → 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 +5 -1
- package/lib/cli.js +5 -1
- package/package.json +1 -1
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
|
|
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;
|
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
|
|
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;
|