An open API service indexing awesome lists of open source software.

https://github.com/nylen/browserify-bug

Reproduce browserify bug involving circular dependencies
https://github.com/nylen/browserify-bug

Last synced: 7 days ago
JSON representation

Reproduce browserify bug involving circular dependencies

Awesome Lists containing this project

README

          

Reproduce `browserify` bug with bundling a module that contains circular
dependencies as a standalone bundle:

- `test/index.js` requires `test/step1.js`
- `test/step1.js` requires `test/index.js` as `require('./index')` (this fails)

Bug: [substack/node-browserify#1068](https://github.com/substack/node-browserify/issues/1068)

Repro instructions: run `npm install`, then `node do-browserify.js`

Also, visit `test.html` in a browser. There will be an error in the console:

```
Uncaught Error: Cannot find module '../index'
```