I use requirejs and typescript for a node_module.
It works but I cannot load it once installed from npm.
It looks like the requirejs config on the node_module change the config of my project (baseUrl and nodeRequire config actually).
There is a way to use TS and requirejs on a node_module?
--module "commonjs"flag to the compiler.
Please note, that although the CommonJS spec uses the
require keyword, this is something completely different than
RequireJS. Node.js does not rely on RequireJS for it's module loading, it has its own module loader that is based on the CommonJS spec.
In short: try to avoid using RequireJS and node.js.