|
|
|
@ -1260,7 +1260,7 @@ function generateJS(ast, options) {
|
|
|
|
|
|
|
|
|
|
commonjs: function() {
|
|
|
|
|
var parts = [],
|
|
|
|
|
dependencyVars = objects.keys(options.dependencies),
|
|
|
|
|
dependencyVars = Object.keys(options.dependencies),
|
|
|
|
|
requires = dependencyVars.map(
|
|
|
|
|
function(variable) {
|
|
|
|
|
return variable
|
|
|
|
@ -1294,7 +1294,7 @@ function generateJS(ast, options) {
|
|
|
|
|
|
|
|
|
|
amd: function() {
|
|
|
|
|
var dependencyIds = objects.values(options.dependencies),
|
|
|
|
|
dependencyVars = objects.keys(options.dependencies),
|
|
|
|
|
dependencyVars = Object.keys(options.dependencies),
|
|
|
|
|
dependencies = '['
|
|
|
|
|
+ dependencyIds.map(
|
|
|
|
|
function(id) { return '"' + js.stringEscape(id) + '"'; }
|
|
|
|
@ -1332,7 +1332,7 @@ function generateJS(ast, options) {
|
|
|
|
|
umd: function() {
|
|
|
|
|
var parts = [],
|
|
|
|
|
dependencyIds = objects.values(options.dependencies),
|
|
|
|
|
dependencyVars = objects.keys(options.dependencies),
|
|
|
|
|
dependencyVars = Object.keys(options.dependencies),
|
|
|
|
|
dependencies = '['
|
|
|
|
|
+ dependencyIds.map(
|
|
|
|
|
function(id) { return '"' + js.stringEscape(id) + '"'; }
|
|
|
|
|