File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ import { lastResortHandler } from "./last-resort.ts";
99import { ResultHandlerError } from "./errors.ts" ;
1010import { ensureError } from "./common-helpers.ts" ;
1111import { monitor } from "./graceful-shutdown.ts" ;
12- import manifest from "../package.json" with { type : "json" } ;
1312
14- export const localsID = Symbol . for ( manifest . name ) ;
13+ // eslint-disable-next-line no-restricted-syntax -- substituted by TSDOWN
14+ export const localsID = Symbol . for ( process . env . TSDOWN_SELF ! ) ;
1515
1616type EquippedRequest = Request <
1717 unknown ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export default defineConfig({
66 minify : true ,
77 attw : { profile : "esmOnly" , level : "error" } ,
88 define : {
9+ "process.env.TSDOWN_SELF" : `"${ manifest . name } "` , // used by localsID
910 "process.env.TSDOWN_BUILD" : `"v${ manifest . version } "` , // @since v25.0.0 is pure ESM
1011 "process.env.TSDOWN_STATIC" : `"static"` , // used by isProduction()
1112 } ,
You can’t perform that action at this time.
0 commit comments