60f74230fe
This is a follow-up to https://github.com/vercel/next.js/pull/36527 to make sure we eagerly patch the lockfile as the correct swc dependency will be present if the platform matches so the load failure isn't hit which is where we were previously patching the lockfile. This is done in the background so does not block compilation. This also removes some extra logs that aren't necessary. <details> <summary>before lockfile patch</summary> ![before](https://user-images.githubusercontent.com/22380829/165780507-09e5aee6-3253-483f-9e3f-e24bea6df377.png) </details> <details> <summary>after lockfile patch</summary> ![after](https://user-images.githubusercontent.com/22380829/165780545-829665aa-05ec-431d-aa2f-42c4ce3badd7.png) </details> This also fixes a case I noticed where we weren't flushing events before exiting when builds fail
8 lines
467 B
TypeScript
8 lines
467 B
TypeScript
export function isWasm(): Promise<boolean>
|
|
export function transform(src: string, options?: any): Promise<any>
|
|
export function transformSync(src: string, options?: any): any
|
|
export function minify(src: string, options: any): Promise<string>
|
|
export function minifySync(src: string, options: any): string
|
|
export function bundle(options: any): Promise<any>
|
|
export function parse(src: string, options: any): any
|
|
export const lockfilePatchPromise: { cur?: Promise<void> }
|