k6
k6 copied to clipboard
feat: Add native TypeScript support using k6pack library
What?
Introduce "enhanced" compatibility mode for k6pack bundling of test script. The result is native TypeScript support for files with ".ts" extensions and enhanced ES compatibility for files with ".js" extension.
The integration happen in test loading phase, so archive will contain the bundled script.
Why?
Implement #3703
Checklist
- [x] I have performed a self-review of my code.
- [ ] I have added tests for my changes.
- [x] I have run linter locally (
make lint) and all checks pass. - [x] I have run tests locally (
make tests) and all tests pass. - [x] I have commented on my code, particularly in hard-to-understand areas.
Related PR(s)/Issue(s)
#3703