Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export gamma to global namespace #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion ConvertToModulesPOC_original/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/3.1.0/system.js"></script>

<script src="./scripts/gamma.js"></script>
<script src="./scripts/alpha.js"></script>
<script src="./scripts/beta.js"></script>
<script src="./scripts/gamma.js"></script>

<script>

Expand Down
1 change: 1 addition & 0 deletions ConvertToModulesPOC_original/scripts/alpha.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ConvertToModulesPOC_original/scripts/alpha.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion ConvertToModulesPOC_original/scripts/alpha.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class alpha {
static _constructor =(() => {
console.log("alpha static constructor");
console.log("alpha static constructor");
(new gamma()).log()
})();

log() {
Expand Down
10 changes: 4 additions & 6 deletions ConvertToModulesPOC_original/scripts/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ConvertToModulesPOC_original/scripts/app.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ConvertToModulesPOC_original/scripts/beta.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ConvertToModulesPOC_original/scripts/beta.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion ConvertToModulesPOC_original/scripts/beta.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class beta {
static _constructor =(() => {
console.log("beta static constructor");
console.log("beta static constructor");
(new gamma()).log()
})();
log() {
const caller = (new Error()).stack.split("\n")[2].trim().split(" ")[1];
Expand Down
2 changes: 1 addition & 1 deletion ConvertToModulesPOC_original/scripts/gamma.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ConvertToModulesPOC_original/scripts/gamma.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class gamma {
static _constructor =(() => {
console.log("gamma static constructor");
console.log("gamma static constructor");
})();
log() {
const caller = (new Error()).stack.split("\n")[2].trim().split(" ")[1];
console.log("gamma.log called by " + caller);
}
}
}