Skip to content

Commit 0143d76

Browse files
committed
fix: root factory variable Module
1 parent 4f9a7a4 commit 0143d76

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424

2525
(function (root, factory) {
2626
if (typeof define === 'function' && define.amd) {
27-
define(["./client"], function (CoCreateFile) {
28-
return factory(CoCreateFile)
27+
define(["./client"], function (Module) {
28+
return factory(Module)
2929
});
3030
} else if (typeof module === 'object' && module.exports) {
31-
const CoCreateFile = require("./server.js")
32-
module.exports = factory(CoCreateFile);
31+
const Module = require("./server.js")
32+
module.exports = factory(Module);
3333
} else {
3434
root.returnExports = factory(root["./client.js"]);
3535
}
36-
}(typeof self !== 'undefined' ? self : this, function (CoCreateFile) {
37-
return CoCreateFile;
36+
}(typeof self !== 'undefined' ? self : this, function (Module) {
37+
return Module;
3838
}));

0 commit comments

Comments
 (0)