Skip to main content
Reference

Supported File Types

Buildable and non-buildable file types, SCSS compilation, and bundle flags.

Buildable File Types

JavaScript and TypeScript

.js, .jsx, .mjs, .cjs, .ts, .tsx

These files are processed by esbuild during deployment. In bundled mode, they compile into a single IIFE. In per-file mode, they produce individual ES modules.

CSS

.css, .scss, .sass

CSS files are bundled into bundle.css. SCSS and SASS files are compiled via Dart Sass automatically during build.

Non-Buildable File Types

.txt, .md, .json, .html, .svg

These files are stored in the project but are not processed by esbuild. In per-file mode, they are uploaded as static assets and served from the CDN. In bundled and folder bundle modes, they are not included in build output.

Bundle Flags

FlagScopeEffect
include_in_bundleFileInclude in the main bundled output
include_in_per_fileFileInclude in per-file output
is_bundleFolderMark folder as a dedicated bundle
exclude_from_bundleFolderExclude folder contents from the main bundle

Toggle these flags from the file tree context menu.

How File Type Affects Build Output

File TypeBundled ModePer-File ModeFolder Bundle
.js / .tsCompiled into bundle.jsIndividual ESM outputCompiled into folder bundle.js
.cssCompiled into bundle.cssIndividual CSS outputCompiled into folder bundle.css
.scss / .sassCompiled via Sass → bundle.cssCompiled via Sass → individual CSSCompiled via Sass → folder bundle.css
.json / .md / .htmlNot includedUploaded as static assetsNot included