Files
pterodactyl-panel/packages/sdk/api-runtime-stub.mjs
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

9 lines
383 B
JavaScript

/**
* "@pterodactyl/sdk/api" is provided BY THE PANEL at runtime through its import
* map. Extension bundles must treat it as external (the vite preset does this).
*/
throw new Error(
'@pterodactyl/sdk/api is resolved at runtime by the panel import map. ' +
'Build your extension with the preset from "@pterodactyl/sdk/vite" so the SDK API runtime stays external.'
);