Skip to content

Commit b5cc6cb

Browse files
committed
fix node18 test?
1 parent 7b5d144 commit b5cc6cb

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

dev-packages/rollup-utils/bundleHelpers.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
makeTerserPlugin,
2121
} from './plugins/index.mjs';
2222
import { mergePlugins } from './utils.mjs';
23+
import { makePackageNodeEsm } from './plugins/make-esm-plugin.mjs';
2324

2425
const BUNDLE_VARIANTS = ['.js', '.min.js', '.debug.min.js'];
2526

@@ -103,7 +104,7 @@ export function makeBaseBundleConfig(options) {
103104
output: {
104105
format: 'esm',
105106
},
106-
plugins: [commonJSPlugin],
107+
plugins: [commonJSPlugin, makePackageNodeEsm()],
107108
// Don't bundle any of Node's core modules
108109
external: builtinModules,
109110
};

packages/aws-serverless/src/lambda-extension/aws-lambda-extension.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,13 @@ export class AwsLambdaExtension {
118118
fetch(upstreamSentryUrl, {
119119
method: 'POST',
120120
body: envelopeBytes,
121-
}).catch(err => {
122-
console.error('error tunneling to sentry', err);
123-
});
121+
})
122+
.then(() => {
123+
console.log('tunneled to sentry');
124+
})
125+
.catch(err => {
126+
console.error('error tunneling to sentry', err);
127+
});
124128

125129
res.writeHead(200, { 'Content-Type': 'application/json' });
126130
res.end(JSON.stringify({}));

0 commit comments

Comments
 (0)