screepers / screeps-typescript-starter

Starter kit for TypeScript-based Screeps AI codes.
https://screepers.gitbook.io/screeps-typescript-starter/
The Unlicense
441 stars 318 forks source link

rollup.config.js missing external flag #105

Closed juliankrieger closed 5 years ago

juliankrieger commented 5 years ago

I had problems using the ts starter because of it not being able to import libraries via 'require' until I added

external: [
    "fs"
  ],

to my rollup.config.js. This fixed the problem on my side. Should I consider issueing a pull request?

Jomik commented 5 years ago

Why are you using require in TypeScript?

kotarou commented 5 years ago

You should not be using require when rollup is used. Import statements can be used for the same functionality.