Skip to content

Commit

Permalink
Fixed standalone bundle.
Browse files Browse the repository at this point in the history
  • Loading branch information
bre1470 committed Aug 9, 2024
1 parent 243450d commit 31b14cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Shared/PostmanEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interface PostmanEnvironmentJSON {
* */


function isPostmanEnvironmentJSON (
export function isPostmanEnvironmentJSON (
obj: unknown
): obj is PostmanEnvironmentJSON {
return (
Expand Down
6 changes: 5 additions & 1 deletion src/Shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import MorningstarAPI from './MorningstarAPI';
import MorningstarError from './MorningstarError';
import MorningstarAccess from './MorningstarAccess';
import MorningstarRegion from './MorningstarRegion';
import { isPostmanEnvironmentJSON } from './PostmanEnvironment';


/* *
Expand All @@ -39,6 +40,8 @@ export * from './MorningstarAPI';
export * from './MorningstarError';
export * from './MorningstarAccess';
export * from './MorningstarOptions';
export * from './MorningstarRegion';
export { isPostmanEnvironmentJSON } from './PostmanEnvironment';


/* *
Expand All @@ -52,5 +55,6 @@ export default {
MorningstarAPI,
MorningstarError,
MorningstarAccess,
MorningstarRegion
MorningstarRegion,
isPostmanEnvironmentJSON
};
4 changes: 2 additions & 2 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ const webpacks: Array<Configuration> = [
globalObject: 'this',
library: {
name: {
amd: `${amd}/morningstar-standalone`,
amd: 'morningstar-standalone',
commonjs,
root: [root, 'MorningstarConnectors']
root: 'MorningstarConnectors'
},
type: 'umd',
umdNamedDefine: true
Expand Down

0 comments on commit 31b14cc

Please sign in to comment.