chore(build): don’t include export var __esModule = true
in every file
But do it during the build process for cjs. Right now we only need this when we transpile from ts directly to es5. This is only the case in our cis build, as for our browser build we only transpile from ts to es6 via ts and then use traceur to do the rest.
This commit is contained in:
@ -3,11 +3,6 @@ import {isBlank, isPresent} from 'angular2/src/facade/lang';
|
||||
import {setRootDomAdapter} from './dom_adapter';
|
||||
import {GenericBrowserDomAdapter} from './generic_browser_adapter';
|
||||
|
||||
// HACK: workaround for Traceur behavior.
|
||||
// It expects all transpiled modules to contain this marker.
|
||||
// TODO: remove this when we no longer use traceur
|
||||
export var __esModule = true;
|
||||
|
||||
var _attrToPropMap = {'innerHtml': 'innerHTML', 'readonly': 'readOnly', 'tabindex': 'tabIndex'};
|
||||
|
||||
const DOM_KEY_LOCATION_NUMPAD = 3;
|
||||
|
@ -1,12 +1,11 @@
|
||||
import {BaseException} from 'angular2/src/facade/lang';
|
||||
|
||||
// TODO: remove this when we no longer use traceur
|
||||
export var __esModule = true;
|
||||
import {BaseException, isBlank} from 'angular2/src/facade/lang';
|
||||
|
||||
export var DOM: DomAdapter;
|
||||
|
||||
export function setRootDomAdapter(adapter: DomAdapter) {
|
||||
DOM = adapter;
|
||||
if (isBlank(DOM)) {
|
||||
DOM = adapter;
|
||||
}
|
||||
}
|
||||
|
||||
function _abstract() {
|
||||
|
Reference in New Issue
Block a user