Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Add test for require collision.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Oct 7, 2017
1 parent 93cedc2 commit 386a1e7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/form/require-collision/foo.js
@@ -0,0 +1 @@
module.exports = "foo";
5 changes: 5 additions & 0 deletions test/form/require-collision/input.js
@@ -0,0 +1,5 @@
(function() {
var foo = require("./foo");
var require$$0 = "FAIL";
console.log(foo);
})();
15 changes: 15 additions & 0 deletions test/form/require-collision/output.js
@@ -0,0 +1,15 @@
import './foo';
import require$$1 from 'commonjs-proxy:./foo';

(function() {
var foo = require$$1;
var require$$0 = "FAIL";
console.log(foo);
})();

var input = {

};

export default input;
export { input as __moduleExports };

0 comments on commit 386a1e7

Please sign in to comment.