@launch/entry1.7.0 • Public • Published
🚀 Launch.js - Simple client/server entry plugin
Plugin for Launch.js to add a client/server entrypoint.
Useful for scenarios where other plugins don't set an entrypoint.
;;void new App.pluginnew EntryPlugin.clientrequire.resolve"./path/to/clientEntry.tsx".serverrequire.resolve"./path/to/serverEntry.tsx".launch
Set the absolute path to the server entrypoint.
Set the absolute path to the client entrypoint.
Setting the file path
When passing a file string to either the
.client() methods, give an absolute path.
The simplest way to do this is to use
require.resolve(), which will first resolve relative to the source file that calls the method, and will return the fully qualified path on disk.