cjs
cjs copied to clipboard
CommonJS loader plugin for RequireJS
Hello Guy, I have some CommonJS modules that I'm trying to load in a "legacy" RequireJS project, and it has require statements like this: ```js // foo.js require('./bar'); ``` that...
I'm trying to put together the simplest example I can, and having a problem. This is my main.js: ``` require.config({ paths: { "amd-loader": "node_modules/amd-loader/amd-loader" } }); require(["cjs!test"], function (test) {...
I'm using cjs and with it I can write my files using the cleaner CommonJS syntax, but use them in a RequireJS environment. No other method that I have tried...