File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -211,9 +211,7 @@ async function createEsBuildContext(
211211 build . onResolve ( { filter : / .* / } , ( args ) => {
212212 if (
213213 definition . packageJson . peerDependencies &&
214- Object . keys ( definition . packageJson . peerDependencies ) . some (
215- ( x ) => args . path === x || args . path . startsWith ( x + "/" ) ,
216- )
214+ Object . keys ( definition . packageJson . peerDependencies ) . some ( ( x ) => args . path . startsWith ( x ) )
217215 ) {
218216 return { path : args . path , external : true } ;
219217 }
@@ -241,19 +239,7 @@ async function createEsBuildContext(
241239 format : "esm" ,
242240 target : "es2024" ,
243241 minify,
244- banner : {
245- js : "delete globalThis.__ALLOY__;" ,
246- } ,
247242 plugins : [ virtualPlugin , nodeModulesPolyfillPlugin ( { } ) , ...plugins ] ,
248- define : {
249- "process.env" : "{}" ,
250- "process.argv" : "[]" ,
251- "process.platform" : '"browser"' ,
252- "process.versions" : "{}" ,
253- "process.stdout" : "undefined" ,
254- "process.stderr" : "undefined" ,
255- "process.cwd" : "undefined" ,
256- } ,
257243 } ) ;
258244}
259245
You can’t perform that action at this time.
0 commit comments