Serpack
Apis
Supported Extensions
Supported Extensions
#Supported Extensions
- JavaScript:
js,cjs,mjs,jsx - TypeScript:
ts,cts,mts,tsx - JSON:
json
INFO
TIP: If you want to load the file regardless of whether its extension is supported, set
options.typeto script. In module mode, extension support is checked strictly, but
in script mode, it is loaded unconditionally.