mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
256e2c78c1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker Cheung <[email protected]>
11 lines
256 B
JavaScript
11 lines
256 B
JavaScript
export default function esbuildPluginStripNodeProtocol() {
|
|
return {
|
|
name: "strip-node-protocol",
|
|
setup(build) {
|
|
build.onResolve({ filter: /^node:/ }, ({ path, kind }) =>
|
|
build.resolve(path.slice(5), { kind })
|
|
);
|
|
},
|
|
};
|
|
}
|