Skip to content

Commit a8d7b66

Browse files
committed
add comments to the code and use a variable to load lie so it is not automatically included in the build by requirejs parse.findDependencies function
1 parent 5934bdf commit a8d7b66

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Promise.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ define(["require"], function (require) {
2727
} else if (typeof Promise === "function") {
2828
onload(Promise);
2929
} else {
30-
// use global require to allow map configuration.
31-
require(["lie/dist/lie"], function (lie) {
30+
// Use absolute path to allow map configuration.
31+
// Also use a variable to avoid RequireJS detection at build time so it is not included in the
32+
// layer.
33+
var lieId = "lie/dist/lie.min";
34+
require([lieId], function (lie) {
3235
onload(lie);
3336
});
3437
}

0 commit comments

Comments
 (0)