UNPKG

server-cli-only

Version:

The server-cli-only package is designed to restrict the import of modules exclusively to React Server Components or scripts running on the CLI.

6 lines (5 loc) 234 B
throw new Error( "[server-cli-only:error.main.js]: Module import fails for your safety. " + "Only Node.js 12+ can run this code. Needed feature of " + '"conditional exports" was added to Node.js in v13.2.0 and v12.16.0.' );