File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
dev-packages/rollup-utils
packages/aws-serverless/src/lambda-extension Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import {
2020 makeTerserPlugin ,
2121} from './plugins/index.mjs' ;
2222import { mergePlugins } from './utils.mjs' ;
23+ import { makePackageNodeEsm } from './plugins/make-esm-plugin.mjs' ;
2324
2425const 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 } ;
Original file line number Diff line number Diff 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 ( { } ) ) ;
You can’t perform that action at this time.
0 commit comments