-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(ivy): switch HelloWorld to ivy compiler
- Loading branch information
Showing
10 changed files
with
133 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!doctype html> | ||
|
||
<html> | ||
<head> | ||
<title>Angular Hello World Example</title> | ||
</head> | ||
<body> | ||
<!-- The Angular application will be bootstrapped into this element. --> | ||
<hello-world></hello-world> | ||
|
||
<!-- | ||
Script tag which bootstraps the application. Use `?debug` in URL to select | ||
the debug version of the script. | ||
There are two scripts sources: `bundle.min.js` and `bundle.min_debug.js` You can | ||
switch between which bundle the browser loads to experiment with the application. | ||
- `bundle.min.js`: Is what the site would serve to their users. It has gone | ||
through rollup, build-optimizer, and uglify with tree shaking. | ||
- `bundle.min_debug.js`: Is what the developer would like to see when debugging | ||
the application. It has also done through full pipeline of rollup, build-optimizer, | ||
and uglify, however special flags were passed to uglify to prevent inlining and | ||
property renaming. | ||
--> | ||
<script> | ||
document.write('<script src="' + | ||
(document.location.search.endsWith('debug') ? '/bundle.min_debug.js' : '/bundle.min.js') + | ||
'"></' + 'script>'); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tools/symbol-extractor/symbol_extractor_spec/iife_with_export.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
var fooBar = function(exports) { | ||
"use strict"; | ||
console.log("Hello, Alice in Wonderland"); | ||
var A = function() { | ||
function A() {} | ||
A.prototype.a = function() { | ||
return document.a; | ||
}; | ||
return A; | ||
}(); | ||
console.error(new A().a()); | ||
exports.A = A; | ||
return exports; | ||
}({}); |
3 changes: 3 additions & 0 deletions
3
tools/symbol-extractor/symbol_extractor_spec/iife_with_export.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[ | ||
"A" | ||
] |