Skip to content

Commit 85c74f9

Browse files
committed
fix: export to allow proper tree shaking
Signed-off-by: will Farrell <[email protected]>
1 parent c9c35ec commit 85c74f9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/core/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { setTimeout } from "node:timers";
22
import { executionModeDefault } from "./executionModeDefault.js";
33

4-
export * from "./executionModeDefault.js";
5-
export * from "./executionModeDurableContext.js";
6-
export * from "./executionModeStreamifyResponse.js";
4+
export { executionModeDefault } from "./executionModeDefault.js";
5+
export { executionModeDurableContext } from "./executionModeDurableContext.js";
6+
export { executionModeStreamifyResponse } from "./executionModeStreamifyResponse.js";
77

88
const defaultLambdaHandler = () => {};
99
const defaultPluginConfig = {
@@ -18,7 +18,7 @@ const defaultPluginConfig = {
1818
executionMode: executionModeDefault,
1919
};
2020

21-
const middy = (setupLambdaHandler, pluginConfig) => {
21+
export const middy = (setupLambdaHandler, pluginConfig) => {
2222
let lambdaHandler;
2323
let plugin;
2424
// Allow base handler to be set using .handler()

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"access": "public"
1212
},
1313
"module": "./index.js",
14+
"sideEffects": false,
1415
"exports": {
1516
".": {
1617
"import": {

0 commit comments

Comments
 (0)