From 29441d15e6a0950779402dfca422c8958ccdfcee Mon Sep 17 00:00:00 2001 From: maxswa Date: Wed, 18 Dec 2019 00:15:14 -0500 Subject: [PATCH] Fix Auth0Client export and integration tests. --- rollup.config.js | 12 ++++++++---- src/index.ts | 2 +- static/index.html | 9 +++++---- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 2063fa0e0..d9264378f 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -41,7 +41,8 @@ let bundles = [ output: { name: EXPORT_NAME, file: 'dist/auth0-spa-js.development.js', - format: 'umd' + format: 'umd', + exports: 'named' }, plugins: [ ...getPlugins(false), @@ -67,7 +68,8 @@ if (isProduction) { { name: EXPORT_NAME, file: pkg.browser, - format: 'umd' + format: 'umd', + exports: 'named' } ], plugins: [ @@ -80,7 +82,8 @@ if (isProduction) { output: [ { file: pkg.module, - format: 'esm' + format: 'esm', + exports: 'named' } ], plugins: getPlugins(isProduction) @@ -91,7 +94,8 @@ if (isProduction) { { name: EXPORT_NAME, file: pkg.main, - format: 'cjs' + format: 'cjs', + exports: 'named' } ], plugins: getPlugins(false), diff --git a/src/index.ts b/src/index.ts index 95579d244..ea3baebf8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,7 +11,7 @@ import { Auth0ClientOptions } from './global'; import { validateCrypto } from './utils'; -export * from './Auth0Client'; +export { Auth0Client }; export * from './global'; export default async function createAuth0Client(options: Auth0ClientOptions) { diff --git a/static/index.html b/static/index.html index 095b6df9e..ec1c454ed 100644 --- a/static/index.html +++ b/static/index.html @@ -24,10 +24,11 @@