Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support typestripping dev build #435

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

guybedford
Copy link
Owner

@guybedford guybedford commented Sep 29, 2024

This implements a new es-module-shims.dev.js that inlines the Amaro project to support the same type stripping from Node.js.

With this, files ending in .ts or .mts automatically get type stripping applied. Because TS files break browsers it automatically engages polyfill mode but also works in shim mode too.

It ends up being around a 2MB loader file, and we can probably get this down with future optimizations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant