Skip to content

Commit

Permalink
fix(templating): Use correct import for core-js
Browse files Browse the repository at this point in the history
We were previously using `import core from core-js` which generates d.ts that do not match the corejs d.ts. This is now updated to `import * as core 'core-js'`, which resolves TypeScript compilation warnings.

closes aurelia/framework#177
  • Loading branch information
davismj committed Aug 5, 2015
1 parent 77452a1 commit 29e4a62
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bindable-property.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import core from 'core-js';
import * as core from 'core-js';
import {hyphenate} from './util';
import {bindingMode} from 'aurelia-binding';

Expand Down
2 changes: 1 addition & 1 deletion src/content-selector.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import core from 'core-js';
import * as core from 'core-js';

if (Element && !Element.prototype.matches) {
var proto = Element.prototype;
Expand Down
2 changes: 1 addition & 1 deletion src/decorators.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import core from 'core-js';
import * as core from 'core-js';
import {Metadata, Decorators} from 'aurelia-metadata';
import {BindableProperty} from './bindable-property';
import {ChildObserver} from './children';
Expand Down
2 changes: 1 addition & 1 deletion src/view-engine.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import core from 'core-js';
import * as core from 'core-js';
import * as LogManager from 'aurelia-logging';
import {Origin} from 'aurelia-metadata';
import {Loader,TemplateRegistryEntry} from 'aurelia-loader';
Expand Down

0 comments on commit 29e4a62

Please sign in to comment.