Skip to content

Commit 5a005c9

Browse files
committedMay 22, 2018
Rename autoMain to loadMainOnStartup
1 parent d4f7f8b commit 5a005c9

9 files changed

+29
-29
lines changed
 

‎main.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ addStealExtension(function (loader) {
20312031
if (typeof config.main === "boolean") {
20322032
delete config.main;
20332033
}
2034-
config.autoMain = true;
2034+
config.loadMainOnStartup = true;
20352035
}
20362036

20372037
return config;
@@ -2047,7 +2047,7 @@ addStealExtension(function (loader) {
20472047
// for Workers get options from steal query
20482048
if (isWebWorker) {
20492049
resolve(extend({
2050-
autoMain: true,
2050+
loadMainOnStartup: true,
20512051
stealURL: location.href
20522052
}, getQueryOptions(location.href)));
20532053
return;
@@ -2072,7 +2072,7 @@ addStealExtension(function (loader) {
20722072
} else {
20732073
// or the only option is where steal is.
20742074
resolve({
2075-
autoMain: true,
2075+
loadMainOnStartup: true,
20762076
stealPath: __dirname
20772077
});
20782078
}
@@ -2126,7 +2126,7 @@ addStealExtension(function (loader) {
21262126
return configPromise.then(function (cfg) {
21272127
setEnvsConfig.call(loader);
21282128
loader._configLoaded = true;
2129-
return loader.main && config.autoMain
2129+
return loader.main && config.loadMainOnStartup
21302130
? loader["import"](loader.main)
21312131
: cfg;
21322132
});
@@ -2185,7 +2185,7 @@ addStealExtension(function (loader) {
21852185
if (!loader.main || loader.localLoader) {
21862186
return configPromise;
21872187
}
2188-
if (config.autoMain) {
2188+
if (config.loadMainOnStartup) {
21892189
var main = loader.main;
21902190
if (typeof main === "string") {
21912191
main = [main];

‎src/startup.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
if (typeof config.main === "boolean") {
6363
delete config.main;
6464
}
65-
config.autoMain = true;
65+
config.loadMainOnStartup = true;
6666
}
6767

6868
return config;
@@ -78,7 +78,7 @@
7878
// for Workers get options from steal query
7979
if (isWebWorker) {
8080
resolve(extend({
81-
autoMain: true,
81+
loadMainOnStartup: true,
8282
stealURL: location.href
8383
}, getQueryOptions(location.href)));
8484
return;
@@ -103,7 +103,7 @@
103103
} else {
104104
// or the only option is where steal is.
105105
resolve({
106-
autoMain: true,
106+
loadMainOnStartup: true,
107107
stealPath: __dirname
108108
});
109109
}
@@ -157,7 +157,7 @@
157157
return configPromise.then(function (cfg) {
158158
setEnvsConfig.call(loader);
159159
loader._configLoaded = true;
160-
return loader.main && config.autoMain
160+
return loader.main && config.loadMainOnStartup
161161
? loader["import"](loader.main)
162162
: cfg;
163163
});
@@ -216,7 +216,7 @@
216216
if (!loader.main || loader.localLoader) {
217217
return configPromise;
218218
}
219-
if (config.autoMain) {
219+
if (config.loadMainOnStartup) {
220220
var main = loader.main;
221221
if (typeof main === "string") {
222222
main = [main];

‎steal-with-promises.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -8024,7 +8024,7 @@ addStealExtension(function (loader) {
80248024
if (typeof config.main === "boolean") {
80258025
delete config.main;
80268026
}
8027-
config.autoMain = true;
8027+
config.loadMainOnStartup = true;
80288028
}
80298029

80308030
return config;
@@ -8040,7 +8040,7 @@ addStealExtension(function (loader) {
80408040
// for Workers get options from steal query
80418041
if (isWebWorker) {
80428042
resolve(extend({
8043-
autoMain: true,
8043+
loadMainOnStartup: true,
80448044
stealURL: location.href
80458045
}, getQueryOptions(location.href)));
80468046
return;
@@ -8065,7 +8065,7 @@ addStealExtension(function (loader) {
80658065
} else {
80668066
// or the only option is where steal is.
80678067
resolve({
8068-
autoMain: true,
8068+
loadMainOnStartup: true,
80698069
stealPath: __dirname
80708070
});
80718071
}
@@ -8119,7 +8119,7 @@ addStealExtension(function (loader) {
81198119
return configPromise.then(function (cfg) {
81208120
setEnvsConfig.call(loader);
81218121
loader._configLoaded = true;
8122-
return loader.main && config.autoMain
8122+
return loader.main && config.loadMainOnStartup
81238123
? loader["import"](loader.main)
81248124
: cfg;
81258125
});
@@ -8178,7 +8178,7 @@ addStealExtension(function (loader) {
81788178
if (!loader.main || loader.localLoader) {
81798179
return configPromise;
81808180
}
8181-
if (config.autoMain) {
8181+
if (config.loadMainOnStartup) {
81828182
var main = loader.main;
81838183
if (typeof main === "string") {
81848184
main = [main];

‎steal-with-promises.production.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎steal.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -6754,7 +6754,7 @@ addStealExtension(function (loader) {
67546754
if (typeof config.main === "boolean") {
67556755
delete config.main;
67566756
}
6757-
config.autoMain = true;
6757+
config.loadMainOnStartup = true;
67586758
}
67596759

67606760
return config;
@@ -6770,7 +6770,7 @@ addStealExtension(function (loader) {
67706770
// for Workers get options from steal query
67716771
if (isWebWorker) {
67726772
resolve(extend({
6773-
autoMain: true,
6773+
loadMainOnStartup: true,
67746774
stealURL: location.href
67756775
}, getQueryOptions(location.href)));
67766776
return;
@@ -6795,7 +6795,7 @@ addStealExtension(function (loader) {
67956795
} else {
67966796
// or the only option is where steal is.
67976797
resolve({
6798-
autoMain: true,
6798+
loadMainOnStartup: true,
67996799
stealPath: __dirname
68006800
});
68016801
}
@@ -6849,7 +6849,7 @@ addStealExtension(function (loader) {
68496849
return configPromise.then(function (cfg) {
68506850
setEnvsConfig.call(loader);
68516851
loader._configLoaded = true;
6852-
return loader.main && config.autoMain
6852+
return loader.main && config.loadMainOnStartup
68536853
? loader["import"](loader.main)
68546854
: cfg;
68556855
});
@@ -6908,7 +6908,7 @@ addStealExtension(function (loader) {
69086908
if (!loader.main || loader.localLoader) {
69096909
return configPromise;
69106910
}
6911-
if (config.autoMain) {
6911+
if (config.loadMainOnStartup) {
69126912
var main = loader.main;
69136913
if (typeof main === "string") {
69146914
main = [main];

‎steal.production.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎test/multi-main/dev.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</script>
1212
<script>
1313
steal = {
14-
autoMain: true,
14+
loadMainOnStartup: true,
1515
main: ["main1", "main2", "main3"]
1616
};
1717
</script>

‎test/steal-with-promises.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -8024,7 +8024,7 @@ addStealExtension(function (loader) {
80248024
if (typeof config.main === "boolean") {
80258025
delete config.main;
80268026
}
8027-
config.autoMain = true;
8027+
config.loadMainOnStartup = true;
80288028
}
80298029

80308030
return config;
@@ -8040,7 +8040,7 @@ addStealExtension(function (loader) {
80408040
// for Workers get options from steal query
80418041
if (isWebWorker) {
80428042
resolve(extend({
8043-
autoMain: true,
8043+
loadMainOnStartup: true,
80448044
stealURL: location.href
80458045
}, getQueryOptions(location.href)));
80468046
return;
@@ -8065,7 +8065,7 @@ addStealExtension(function (loader) {
80658065
} else {
80668066
// or the only option is where steal is.
80678067
resolve({
8068-
autoMain: true,
8068+
loadMainOnStartup: true,
80698069
stealPath: __dirname
80708070
});
80718071
}
@@ -8119,7 +8119,7 @@ addStealExtension(function (loader) {
81198119
return configPromise.then(function (cfg) {
81208120
setEnvsConfig.call(loader);
81218121
loader._configLoaded = true;
8122-
return loader.main && config.autoMain
8122+
return loader.main && config.loadMainOnStartup
81238123
? loader["import"](loader.main)
81248124
: cfg;
81258125
});
@@ -8178,7 +8178,7 @@ addStealExtension(function (loader) {
81788178
if (!loader.main || loader.localLoader) {
81798179
return configPromise;
81808180
}
8181-
if (config.autoMain) {
8181+
if (config.loadMainOnStartup) {
81828182
var main = loader.main;
81838183
if (typeof main === "string") {
81848184
main = [main];

‎test/steal-with-promises.production.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.