Does Bun plan on implementing stripTypeScriptTypes from "node:module"? #14973
guest271314
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Similar functionality in Bun world is
bun build --no-bundle
.There are a couple bugs at large that deal with how comments are handled when Bun blundles source code.
module.stripTypeScriptTypes(code[, options])
code
{string} The code to strip type annotations from.options
{Object}mode
{string} Default:'strip'
. Possible values are:'strip'
Only strip type annotations without performing the transformation of TypeScript features.'transform'
Strip type annotations and transform TypeScript features to JavaScript.sourceMap
{boolean} Default:false
. Only whenmode
is'transform'
, iftrue
, a source mapwill be generated for the transformed code.
sourceUrl
{string} Specifies the source url used in the source map.Beta Was this translation helpful? Give feedback.
All reactions