Skip to content

Commit 4ba264e

Browse files
committed
define call should include empty dependencies
Without this, the factory may be scanned for additional dependencies matching the literal string `require("module-id")`, which is not correct. See https://github.com/amdjs/amdjs-api/wiki/AMD#simplified-commonjs-wrapping-.
1 parent c505e9d commit 4ba264e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

returnExports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
(function (root, factory) {
4242
if (typeof define === 'function' && define.amd) {
4343
// AMD. Register as an anonymous module.
44-
define(factory);
44+
define([], factory);
4545
} else if (typeof exports === 'object') {
4646
// Node. Does not work with strict CommonJS, but
4747
// only CommonJS-like enviroments that support module.exports,

0 commit comments

Comments
 (0)