Skip to content

Instantly share code, notes, and snippets.

@nmalkin
Created July 27, 2012 23:00
Show Gist options
  • Save nmalkin/3190922 to your computer and use it in GitHub Desktop.
Save nmalkin/3190922 to your computer and use it in GitHub Desktop.
Jetpack circular dependency bug
console.log('This is A.');
var b = require('b');
console.log('This is B.');
var a = require('a');
console.log('This is C.')
var main = require('main');
console.log('This is main.');
var a = require('a');
var b = require('b');
var c = require('c');
{
"name": "cycle",
"license": "MPL 2.0",
"author": "",
"version": "0.1",
"fullName": "cycle",
"id": "jid1-07jsfB6w6YeoFA",
"description": "a basic add-on"
}
@nmalkin
Copy link
Author

nmalkin commented Jul 27, 2012

The output:

info: This is main.
info: This is A.
info: This is B.
info: This is C.
info: This is main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment