mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
14 lines
326 B
TypeScript
14 lines
326 B
TypeScript
import { NodeResolvePlugin } from "@esbuild-plugins/node-resolve";
|
|
|
|
export const markAsExternalPlugin = NodeResolvePlugin({
|
|
extensions: [".js", "ts", "tsx", "jsx"],
|
|
onResolved: (resolved) => {
|
|
if (resolved.includes("node_modules")) {
|
|
return {
|
|
external: true,
|
|
};
|
|
}
|
|
return resolved;
|
|
},
|
|
});
|