UNPKG

@platform/react.ssr

Version:

A lightweight SSR (server-side-rendering) system for react apps bundled with ParcelJS and hosted on S3.

13 lines (10 loc) 320 B
#!/usr/bin/env node /** * Makes the script crash on unhandled rejections instead of silently * ignoring them. In the future, promise rejections that are not handled will * terminate the Node.js process with a non-zero exit code. */ process.on('unhandledRejection', (err) => { throw err; }); import './cli/cmds';