My project reports an exception when using esbuild: [WARNING] "./worker" should be marked as external for use with "require.resolve" [require-resolve-not-external] This is because the require.resolve in the code makes it unable to be packaged normally, and there will be a problem of missing modules when running the packaged code.
Hope to adapt to esbuild as soon as possible