Top "Commonjs" questions

CommonJS is a project whose goal is to move JavaScript outside the browser.

Typescript/Node Unexpected token *

I'm trying to update my app node backend to typescript and I keep hitting this syntax error: /Users/Shared/website/…

node.js typescript webpack commonjs
How can I use CommonJS modules with Oracle's new Nashorn JS Engine?

I'm looking for a module system for Nashorn. From what I can tell, CommonJS is the way to go concerning …

commonjs nashorn
require a module with webpack

I use Webpack in order to build my javascript of my website. Everything work perfectly but I would like to …

javascript build require commonjs webpack
Typescript module systems on momentJS behaving strangely

I'm trying to use momentJs from typescript: depending on what module system I'm using to compile typescript, I find a …

typescript momentjs commonjs systemjs
How to compile an Angular2 TypeScript application to a single file?

I realize that I can compile my application with tsc my_app.ts --target system and it will generate a …

typescript commonjs angular systemjs tsc
How to solve circular dependency in Require.js?

Basically, the idea is that "sub" module creates an object, and that object should be part of a utilities library …

javascript requirejs amd circular-dependency commonjs
How to keep Browserify bundle size sensible when using requires for thirdparty stuff (via grunt if it matters)

I'm trying to bundle up my own code (A) which in turn uses 2 third party components (B and C) where …

reactjs browserify commonjs grunt-browserify
How To Use ScrollMagic with GSAP and Webpack

In order to use ScrollMagic with GSAP, you need to load the animation.gsap.js plugin. With Webpack you would …

javascript webpack commonjs gsap scrollmagic
Webpack doesn't find a module that actually exists

I'm in trouble, I just did npm uninstall react-bootstrap and then npm install react-bootstrap and webpack cannot load this module …

node.js npm webpack commonjs react-bootstrap
module.exports gets undefined while importing on another file

This is my file structure for simple Express app. server/ |- models |--- users.js |- index.js index.js …

node.js requirejs commonjs