A browser-only loader that allows running TypeScript files directly from script tags with `type="application/typescript"` and `src` attribute, without any build step or bundler. It transpiles TypeScript on-the-fly in the browser using esm.sh for the TypeScript compiler and rewrites import specifiers to blob URLs. Ideal for small prototypes (up to 10–15 components) and quick experiments. Not suitable for production apps due to CDN dependency, lack of tree-shaking, and SSR. Current stable version is 1.0.2. Releases are infrequent. Key differentiator: zero configuration and no build tools, relying on CDN-based compilation via esm.sh.
npm install application-typescriptNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
HTML page that loads a TypeScript file directly via a script tag and runs it in the browser using the application-typescript runner from esm.sh.
Ensure the runner `<script type="module" src="https://esm.sh/application-typescript"></script>` appears after all application/typescript markers in the HTML.
Serve your files over HTTP (e.g., `npx serve .`).
Add an import map to pin versions or use a different CDN. Example: `{"imports":{"htm/preact/standalone":"https://esm.sh/htm@3.1.1/preact/standalone"}}`Monitor esm.sh availability or switch to a bundler for production.
Flatten scoped imports into the top-level `imports` object.
Check that the import specifier starts with './' or '../' and that the file exists at the expected URL relative to the importing module.
Verify the URL in the script tag. Alternatively, use 'https://unpkg.com/application-typescript' as fallback.
Use an import map to pin versions, and verify the export name matches the module's actual exports.
Remove the `scopes` property from the import map and move all mappings to the top-level `imports`.
Add `type="module"` to the script tag loading the runner: `<script type="module" src="https://esm.sh/application-typescript"></script>`