Run yarn
in the repository root.
- See
package.json
scripts. TypeScript'stsc
can 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.
swc
is used to transpile JS/TS, seeecmaVersion
in 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-error
comment above BrightSign module imports (seenode/api.ts
).