Skip to content

Commit f3a21b2

Browse files
committed
fix default exports loading
1 parent a43a1ff commit f3a21b2

File tree

14 files changed

+32084
-8394
lines changed

14 files changed

+32084
-8394
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55

66
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77

8+
## [0.2.16] 2023-09-04
9+
10+
- fix loading for default exports
11+
812
## [0.2.15] 2023-09-04
913

1014
- add cjs to extension for otel extension so it loads in all node environments
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/preset-env',
5+
{
6+
targets: {
7+
node: 'current',
8+
},
9+
},
10+
],
11+
],
12+
plugins: [
13+
"@babel/plugin-transform-modules-commonjs",
14+
"@babel/plugin-syntax-flow",
15+
"@babel/plugin-transform-flow-strip-types",
16+
"@babel/plugin-proposal-optional-chaining",
17+
[
18+
"@babel/plugin-proposal-decorators",
19+
{
20+
"legacy": true,
21+
}
22+
],
23+
"transform-class-properties",
24+
[
25+
"module-resolver",
26+
{
27+
"alias": {
28+
"@": "."
29+
}
30+
}
31+
]
32+
],
33+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as enum } from './src/func';

0 commit comments

Comments
 (0)