Tags: TypeStrong/ts-loader
Tags
map input source map (#1626) * map input source map * code review changes * reformat * remove usage of async/await * free memory of source map consumers * code review changes * copy input source map before modifying * fix comment * fix: crash because source map is not always generated by ts-compiler * chore: update yarn.lock * fix linting * add test * test * test * add new source maps * add readme * update bundle * link test package * install dependencies in during test execution * update package lock * update expected output * bump version and add changelog entry
Use custom transformer when building solution references (#1550) * Refactor getting custom transformer into a dedicated function This allows us to share the function between `initializeInstance` and `makeSolutionBuilderHost`. `makeSolutionBuilderHost` is called as a part of `buildSolutionReferences`. `buildSolutionReferences` is called before `initializeInstance` where the custom transformers are initialized. * Implement `getCustomTransformer` in `makeSolutionBuilderHost` This allows us to pass on the custom transformer while the project references are built. * Remove redundant `.toString` `options.configFilePath` is always a string, there's no reason we need `toString()` too. * Runtime check that project is a string In a previous commit, I removed `.toString()` without validating what the Typescript compiler would say. This change does a runtime check that the project variable is an actual string. * Update `CHANGELOG.md` and `package.json` Co-authored-by: John Reilly <johnny_reilly@hotmail.com>
Add Support for Resolving `.cjs`, `.mjs`, `.cts` and `.mts` Files (#1503 ) * resolve: Pass implied module kind to typescript * resolve: Fix detection of declaration files * test: Replace inexistent package * test: Fix broken docker image * devcontainer: Update outdated settings * resolve: Allow `.cts`, `.mts`, `.cjs` and `.mjs` * resolve: Fix broken `enhanced-resolve` calls * resolve: Improve type safety * interop: Create a separate regex for declarations * types: Remove unnecessary return type * test: Add remark on how to regenerate tests * test: Regenerate comparison-tests * Bump the version number * Add changelog entry * doc: Update CHANGELOG.md Co-authored-by: John Reilly <johnny_reilly@hotmail.com> Co-authored-by: John Reilly <johnny_reilly@hotmail.com>
Generate declaration files for js files if allowJs is set to true (#1483 ) * Fixes #1260 by generating declaration files for js files if allowJs is set to true. * Fix declarationOutputAllowJs test Update expected test output for 4.7 and stabilize expectation to be OS independent. * Update package.json and CHANGELOG.md for 9.3.1 * Update CHANGELOG.md Co-authored-by: John Reilly <johnny_reilly@hotmail.com> Co-authored-by: Henning Dieterichs <henning.dieterichs@live.de> Co-authored-by: John Reilly <johnny_reilly@hotmail.com>
PreviousNext