/**
 * An esbuild plugin that will mark `node:async_hooks` imports as external.
 */
export const esbuildPluginAsyncLocalStorage = {
    name: "async-local-storage-imports",
    setup(pluginBuild) {
        pluginBuild.onResolve({ filter: /^node:async_hooks(\/|$)/ }, () => {
            return { external: true };
        });
    },
};
//# sourceMappingURL=plugin-als-external.js.map