2 things wrong with the example code on your README:
You a have a typo
It was a pain to figure out how to get this to work (when it commits to screeps, nothing happens since screeps expects a module.exports but instead, webpack builds to a var target by default. This is easily fixed by passing in the right output.libraryTarget to the webpack config (the exported file should export as a commonjs module, not a variable)
This should significantly help anyone else planning to use the repo 👍
2 things wrong with the example code on your README:
module.exports
but instead, webpack builds to avar
target by default. This is easily fixed by passing in the right output.libraryTarget to the webpack config (the exported file should export as a commonjs module, not a variable)This should significantly help anyone else planning to use the repo 👍
I've made a PR for these issues