develwoutacause’s avatardevelwoutacause’s Twitter Archive—№ 83

  1. I just started a pet project and wanted to use #TypeScript but had a #CommonJS dependency. I just spent the last **two hours** with #Rollup unsuccessfully trying to get a build which just **imports** the dep correctly. Im what other ecosystem would this be so goddamn difficult?!
    1. …in reply to @develwoutacause
      The flag I needed was: commonjs({ extensions: [".js", ".ts"], }) Apparently using thetypescript() plugin first doesn't just convert everything to *.js files. Even commonjs() needs to know you're using #TypeScript apparently.