#Exclude a single statement from being included in the compiled output.

11 messages · Page 1 of 1 (latest)

native lily
#

Is there anyway to exclude a single line or statement in a typescript file from being included in the compiled output.
for example, I don't want this statement to be included in the javascript file:
import bootstrap from 'bootstrap'

fervent swan
#

but why

#

!hb triple slash

iron mauveBOT
fervent swan
#

this may be what you're looking for

native lily
fervent swan
#

you might want to use webpack to bundle your code for the browser

#

otherwise you arent running bootstrap at all

#

because the browser can't see it

native lily
fervent swan