@@ -26,20 +26,23 @@ const esBuildTargets = browserslist().filter(browser => !browser.endsWith('TP'))
2626( async ( ) => {
2727 process . env . PUBLIC_URL ??= '' ;
2828
29+ await copyDir ( 'node_modules/timers-browserify' , 'node_modules/timers' ) ;
30+
2931 await rm ( OUT_DIR , { recursive : true , force : true } ) ;
3032 await copyDir ( 'public' , OUT_DIR ) ;
3133
32- const sentryPlugin = ( ) => sentryEsbuildPlugin ( {
33- org : "nick-webster" ,
34- project : "micropad" ,
35- release : {
36- name : packageJson . version ,
37- finalize : false
38- } ,
39- // Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
40- // and need `project:releases` and `org:read` scopes
41- authToken : process . env . SENTRY_AUTH_TOKEN ,
42- } ) ;
34+ // TODO: re-enable when I update esbuild
35+ // const sentryPlugin = () => sentryEsbuildPlugin({
36+ // org: "nick-webster",
37+ // project: "micropad",
38+ // release: {
39+ // name: packageJson.version,
40+ // finalize: false
41+ // },
42+ // // Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
43+ // // and need `project:releases` and `org:read` scopes
44+ // authToken: process.env.SENTRY_AUTH_TOKEN,
45+ // });
4346
4447 const { metafile : browserCheckMetafile } = await build ( {
4548 entryPoints : [ 'src/unsupported-page/index.ts' ] ,
@@ -60,7 +63,7 @@ const esBuildTargets = browserslist().filter(browser => !browser.endsWith('TP'))
6063 'process.env.PUBLIC_URL' : `"${ process . env . PUBLIC_URL } "`
6164 } ,
6265 assetNames : 'assets/[name].[hash]' ,
63- plugins : [ sentryPlugin ( ) ]
66+ plugins : [ ]
6467 } ) . catch ( ( ) => process . exit ( 1 ) ) ;
6568
6669 if ( ! browserCheckMetafile ) throw new Error ( 'Missing metafile' ) ;
@@ -101,7 +104,6 @@ const esBuildTargets = browserslist().filter(browser => !browser.endsWith('TP'))
101104 } ,
102105 plugins : [
103106 esbuildPluginBrowserslist ( esBuildTargets ) ,
104- sentryPlugin ( )
105107 ] ,
106108 } ) . catch ( ( ) => process . exit ( 1 ) ) ;
107109
@@ -187,7 +189,6 @@ const esBuildTargets = browserslist().filter(browser => !browser.endsWith('TP'))
187189 } ,
188190 plugins : [
189191 esbuildPluginBrowserslist ( esBuildTargets ) ,
190- sentryPlugin ( )
191192 ] ,
192193 } ) . catch ( ( ) => process . exit ( 1 ) ) ;
193194
@@ -237,7 +238,6 @@ const esBuildTargets = browserslist().filter(browser => !browser.endsWith('TP'))
237238 } ,
238239 plugins : [
239240 esbuildPluginBrowserslist ( esBuildTargets ) ,
240- sentryPlugin ( )
241241 ] ,
242242 } ) . catch ( ( ) => process . exit ( 1 ) ) ;
243243
0 commit comments