@@ -175,7 +175,6 @@ async function runDtsBundler(entrypoint, output) {
175
175
* @property {boolean } [exportIsTsObject]
176
176
* @property {boolean } [treeShaking]
177
177
* @property {boolean } [usePublicAPI]
178
- * @property {boolean } [tsgoCompat]
179
178
* @property {() => void } [onWatchRebuild]
180
179
*/
181
180
function createBundler ( entrypoint , outfile , taskOptions = { } ) {
@@ -197,9 +196,6 @@ function createBundler(entrypoint, outfile, taskOptions = {}) {
197
196
treeShaking : taskOptions . treeShaking ,
198
197
packages : "external" ,
199
198
logLevel : "warning" ,
200
- define : {
201
- __TSGO_COMPAT__ : taskOptions . tsgoCompat ? "true" : "false" ,
202
- } ,
203
199
// legalComments: "none", // If we add copyright headers to the source files, uncomment.
204
200
} ;
205
201
@@ -236,8 +232,7 @@ function createBundler(entrypoint, outfile, taskOptions = {}) {
236
232
const require = "require" ;
237
233
const fakeName = "Q" . repeat ( require . length ) ;
238
234
const fakeNameRegExp = new RegExp ( fakeName , "g" ) ;
239
- options . define = options . define || { } ;
240
- options . define [ require ] = fakeName ;
235
+ options . define = { [ require ] : fakeName } ;
241
236
242
237
// For historical reasons, TypeScript does not set __esModule. Hack esbuild's __toCommonJS to be a noop.
243
238
// We reference `__copyProps` to ensure the final bundle doesn't have any unreferenced code.
@@ -546,7 +541,6 @@ const { main: tests, watch: watchTests } = entrypointBuildTask({
546
541
output : testRunner ,
547
542
mainDeps : [ generateLibs ] ,
548
543
bundlerOptions : {
549
- tsgoCompat : true ,
550
544
// Ensure we never drop any dead code, which might be helpful while debugging.
551
545
treeShaking : false ,
552
546
onWatchRebuild ( ) {
0 commit comments