diff --git a/bower.json b/bower.json index 87eaea6..a59a009 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-bootstrapper", - "version": "2.3.1", + "version": "2.3.2", "description": "Sets up the default configuration for the aurelia framework and gets you up and running quick and easy.", "keywords": [ "aurelia", diff --git a/dist/amd/aurelia-bootstrapper.js b/dist/amd/aurelia-bootstrapper.js index a418ded..9baa53c 100644 --- a/dist/amd/aurelia-bootstrapper.js +++ b/dist/amd/aurelia-bootstrapper.js @@ -78,6 +78,8 @@ define(['module', 'exports', 'aurelia-pal', 'aurelia-polyfills'], function (modu } function initializePal(loader) { + if (_aureliaPal.isInitialized) return Promise.resolve(); + var type = void 0; var isRenderer = isNodeLike && (process.type === 'renderer' || process.versions['node-webkit']); diff --git a/dist/aurelia-bootstrapper.js b/dist/aurelia-bootstrapper.js index e8da50b..4953cb8 100644 --- a/dist/aurelia-bootstrapper.js +++ b/dist/aurelia-bootstrapper.js @@ -76,6 +76,8 @@ function createLoader() { } function initializePal(loader) { + if (isInitialized) return Promise.resolve(); + let type; const isRenderer = isNodeLike && (process.type === 'renderer' || process.versions['node-webkit']); diff --git a/dist/commonjs/aurelia-bootstrapper.js b/dist/commonjs/aurelia-bootstrapper.js index c59bf4d..9628a84 100644 --- a/dist/commonjs/aurelia-bootstrapper.js +++ b/dist/commonjs/aurelia-bootstrapper.js @@ -78,6 +78,8 @@ function createLoader() { } function initializePal(loader) { + if (_aureliaPal.isInitialized) return Promise.resolve(); + var type = void 0; var isRenderer = isNodeLike && (process.type === 'renderer' || process.versions['node-webkit']); diff --git a/dist/es2015/aurelia-bootstrapper.js b/dist/es2015/aurelia-bootstrapper.js index b3e3fd2..419041c 100644 --- a/dist/es2015/aurelia-bootstrapper.js +++ b/dist/es2015/aurelia-bootstrapper.js @@ -58,6 +58,8 @@ function createLoader() { } function initializePal(loader) { + if (isInitialized) return Promise.resolve(); + let type; const isRenderer = isNodeLike && (process.type === 'renderer' || process.versions['node-webkit']); diff --git a/dist/native-modules/aurelia-bootstrapper.js b/dist/native-modules/aurelia-bootstrapper.js index 487f5fa..efcdc54 100644 --- a/dist/native-modules/aurelia-bootstrapper.js +++ b/dist/native-modules/aurelia-bootstrapper.js @@ -68,6 +68,8 @@ function createLoader() { } function initializePal(loader) { + if (isInitialized) return Promise.resolve(); + var type = void 0; var isRenderer = isNodeLike && (process.type === 'renderer' || process.versions['node-webkit']); diff --git a/dist/system/aurelia-bootstrapper.js b/dist/system/aurelia-bootstrapper.js index f3a7f6e..179f9ce 100644 --- a/dist/system/aurelia-bootstrapper.js +++ b/dist/system/aurelia-bootstrapper.js @@ -61,6 +61,8 @@ System.register(['aurelia-polyfills', 'aurelia-pal'], function (_export, _contex } function initializePal(loader) { + if (isInitialized) return Promise.resolve(); + var type = void 0; var isRenderer = isNodeLike && (process.type === 'renderer' || process.versions['node-webkit']); diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 5987324..ac020b6 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,13 @@ + +## [2.3.2](https://github.com/aurelia/bootstrapper/compare/2.3.1...2.3.2) (2019-01-26) + + +### Bug Fixes + +* avoid unnecessary pal loading when pal is already initialized ([429c261](https://github.com/aurelia/bootstrapper/commit/429c261)), closes [aurelia/cli#1019](https://github.com/aurelia/cli/issues/1019) + + + ## [2.3.1](https://github.com/aurelia/bootstrapper/compare/2.3.0...2.3.1) (2018-12-01) diff --git a/package.json b/package.json index 210fcd3..6d66338 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-bootstrapper", - "version": "2.3.1", + "version": "2.3.2", "description": "Sets up the default configuration for the aurelia framework and gets you up and running quick and easy.", "keywords": [ "aurelia",