Skip to content

Commit 2842d63

Browse files
committed
up
1 parent b70e79e commit 2842d63

File tree

7 files changed

+724
-833
lines changed

7 files changed

+724
-833
lines changed

.babelrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", {
4+
"targets": {
5+
"browsers": "IE 11" // Target ES5 for older environments
6+
},
7+
"modules": "umd",
8+
// "allowAllFormats": true,
9+
"useBuiltIns": false, // Automatically include required polyfills
10+
// "corejs": 3 // Use core-js version 3
11+
// "extensions": [".js", ".jsx", ".ts", ".tsx"],
12+
// "include": ["lib/**/*", "node_modules/**/*"]
13+
}]
14+
]
15+
}

lib/foo.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export class Foo {
2+
constructor() {
3+
this.name = 'foo';
4+
}
5+
6+
getName() {
7+
return this.name?.length;
8+
}
9+
}

lib/index.browser.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ export const createInstance = function(config: Config): Client | null {
4242
);
4343
}
4444

45+
const MYFOO = config.logger ?? 'foo';
46+
console.log('MYFOO', MYFOO);
47+
4548
return client;
4649
};
4750

@@ -62,3 +65,5 @@ export * from './common_exports';
6265
export * from './export_types';
6366

6467
export const clientEngine: string = JAVASCRIPT_CLIENT_ENGINE;
68+
69+
export { Foo } from './foo';

0 commit comments

Comments
 (0)