Skip to content

Commit

Permalink
fix(index): initialize PAL as soon as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
niieani committed Jul 19, 2016
1 parent 93ff213 commit 54d385c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
@@ -1,6 +1,7 @@
import 'aurelia-polyfills';
import {initialize} from 'aurelia-pal-browser';
import {WebpackLoader} from 'aurelia-loader-webpack';
initialize();

let bootstrapQueue = [];
let sharedLoader = null;
Expand Down Expand Up @@ -61,8 +62,6 @@ function config(loader, appHost, configModuleId) {

function run() {
return ready(window).then(doc => {
initialize();

const appHost = doc.querySelectorAll('[aurelia-app]');
const loader = new WebpackLoader();
loader.loadModule('aurelia-framework').then(m => {
Expand Down

0 comments on commit 54d385c

Please sign in to comment.