Run yarn in the repository root.
- See
package.jsonscripts. TypeScript'stsccan be run withyarn tsc. - When running the local development server, append the output HTML file name with its extension to the URL.
- Both JavaScript and Typescript modules will work and are interoperable.
swcis used to transpile JS/TS, seeecmaVersionin the webpack config.- BrightSign modules (
@brightsign/...imports) are automatically included in webpack externals. If more externals are needed, see combining syntaxes. - When adding path aliases, they must be added to
tsconfig.json, the webpackswcOptionsNode, and both webpack configs'resolve.alias.
- Add a
@ts-expect-errorcomment above BrightSign module imports (seenode/api.ts).