From 4b6208c5810e60991787e571045a9d5dd38c9941 Mon Sep 17 00:00:00 2001 From: doktordirk Date: Thu, 25 Aug 2016 13:28:08 +0200 Subject: [PATCH] fix(bundle): re-add imports for bundling --- build/paths.js | 6 +++++- src/aurelia-authentication.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build/paths.js b/build/paths.js index 4842c7e..b47a1a7 100644 --- a/build/paths.js +++ b/build/paths.js @@ -20,7 +20,11 @@ var paths = { packageName: pkg.name, ignore: [], useTypeScriptForDTS: false, - importsToAdd: [], // eg. non-concated local imports in the main file as they will get removed during the build process + importsToAdd: [ + 'import {AuthFilterValueConverter} from "./authFilterValueConverter"', + 'import {AuthenticatedValueConverter} from "./authenticatedValueConverter"', + 'import {AuthenticatedFilterValueConverter} from "./authenticatedFilterValueConverter"' + ], // eg. non-concated local imports in the main file as they will get removed during the build process importsToIgnoreForDts: ['extend', 'jwt-decode'], // imports that are only used internally. no need to d.ts export them jsResources: [appRoot + '*ValueConverter.js'], // js to transpile, but not be concated and keeping their relative path resources: appRoot + '{**/*.css,**/*.html}', diff --git a/src/aurelia-authentication.js b/src/aurelia-authentication.js index a263973..bdd635e 100644 --- a/src/aurelia-authentication.js +++ b/src/aurelia-authentication.js @@ -5,7 +5,7 @@ import {BaseConfig} from './baseConfig'; import {FetchConfig} from './fetchClientConfig'; import * as LogManager from 'aurelia-logging'; -// added for easy jspm bundling +// added for bundling import {AuthFilterValueConverter} from './authFilterValueConverter'; // eslint-disable-line no-unused-vars import {AuthenticatedFilterValueConverter} from './authenticatedFilterValueConverter'; // eslint-disable-line no-unused-vars import {AuthenticatedValueConverter} from './authenticatedValueConverter'; // eslint-disable-line no-unused-vars