We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Originally posted by phbernard June 13, 2023 tsx handles text file import out of the box:
import myTextFile from 'myTextFile.txt'
Is it possible to do the same with binary files? For example:
import myBinaryFile from 'myBinaryFile.bin' // DOESN'T WORK
A command line option? Using a particular extension maybe?
The text was updated successfully, but these errors were encountered:
I believe that it is supposed to be supported according to the documentation at https://esbuild.github.io/content-types/#text (if I am not mistaken).
Additionally, binary content could also be supported as mentioned in the documentation at https://esbuild.github.io/content-types/#binary.
Sorry, something went wrong.
Neither. tsx's goal is TypeScript parity, not esbuild parity.
Fixed via esbuild-kit/cjs-loader#40
No branches or pull requests
Discussed in https://github.com/esbuild-kit/tsx/discussions/255
Originally posted by phbernard June 13, 2023
tsx handles text file import out of the box:
Is it possible to do the same with binary files? For example:
A command line option? Using a particular extension maybe?
The text was updated successfully, but these errors were encountered: