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
- Host: GitHub
- URL: https://github.com/nylen/browserify-bug
- Owner: nylen
- Created: 2015-01-14T16:51:24.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-18T18:51:58.000Z (about 11 years ago)
- Last Synced: 2025-11-12T05:37:19.292Z (8 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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'
```