The Wayback Machine - https://web.archive.org/web/20200612041800/https://github.com/topics/commonjs
Skip to content
#

commonjs

Here are 276 public repositories matching this topic...

blaasvaer
blaasvaer commented Mar 1, 2020

Hi, I've been trying to figure out from the docs (and google) to implement externalization of modules in Browserify with no luck. I've implemented transform-runtime plugins, and used .external(filename) in Gulp and tried to use require() in another module ... but I general cannot figure out from the docs what part or parts I'm missing in making this work.

Could someone please, add a brief secti

luisnaranjo733
luisnaranjo733 commented Oct 19, 2018

I'm testing out madge on my TS RN codebase, and I'm surprised to see that it just magically works without specifying a tsconfig.

For example
yarn madge --circular --extensions ts,tsx ./

Although this is cool and exciting, it gives me pause because the documentation doesn't explain how this works. I read the source and followed the path through a series of external npm dependencies. Af

chasenlehara
chasenlehara commented Sep 3, 2019

I was expecting this configuration to work in can-route:

steal = {
	paths: {
		'src/routedata': 'src/routedata-definemap.js'
	}
};

Instead, I had to include can-route in the mapping:

steal = {
	paths: {
		'can-route/src/routedata': 'src/routedata-definemap.js'
	}
};

Is this expected? If so, can some more documentation around this be added?

Improve this page

Add a description, image, and links to the commonjs topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the commonjs topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.