Skip to content

Conversation

eduardoboucas
Copy link
Member

Which problem is this pull request solving?

In this repository we take a TypeScript source and generate both a Node.js module (using tsc to transpile) and a Deno module. Sadly, tsc and Deno disagree about the correct way to import a TypeScript file, with the former not supporting the .ts extension in import paths and the latter requiring it.

Right now this isn't a problem because we have a simple entry point file that is not importing anything, but once the codebase becomes more complex and we need to break it out into separate files, we'll have a problem.

To prevent that, this PR replaces tsc with esbuild, which does let you import TypeScript files with a .ts extension. We're still using tsc for type checking, but it's esbuild who actually transpiles the code.

@eduardoboucas eduardoboucas requested a review from a team as a code owner July 26, 2023 13:35
@netlify
Copy link

netlify bot commented Jul 26, 2023

Deploy Preview for blobs-js ready!

Name Link
🔨 Latest commit 6735fae
🔍 Latest deploy log https://app.netlify.com/sites/blobs-js/deploys/64c1212e88366d0008b67852
😎 Deploy Preview https://deploy-preview-22--blobs-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Jul 26, 2023
Copy link

@charliegroll charliegroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@eduardoboucas eduardoboucas merged commit 23c6576 into main Jul 26, 2023
@eduardoboucas eduardoboucas deleted the feat/esbuild branch October 24, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants