How To Make Using Tsify With The Amd Module System Result In A Bundle File, Not In Separate Files Or A File That Uses The Not-found `define`?
I do not care which module system I use if I am able to use the ES6 TypeScript import/export syntax. Why does AMD put just main.ts in the bundle.js file, while UMD puts all the nee
Solution 1:
I started using UMD in the watch.sh
file and everything works except some unrelated errors.
The watch.sh
file is like this now:
watchify --debug ts/main.ts -p [ tsify -p tsconfig.json -m umd ] -o js/bundle.js -v
The bundle.js
file is correctly big and the browser does not complain about the missing define
function.
Post a Comment for "How To Make Using Tsify With The Amd Module System Result In A Bundle File, Not In Separate Files Or A File That Uses The Not-found `define`?"