diff --git a/src/knockout-sortable.js b/src/knockout-sortable.js index caa3f55..cd0b3e5 100644 --- a/src/knockout-sortable.js +++ b/src/knockout-sortable.js @@ -2,6 +2,12 @@ if (typeof define === "function" && define.amd) { // AMD anonymous module define(["knockout", "jquery", "jquery.ui.sortable"], factory); + } else if (typeof module === "object") { + // CommonJS module + var ko = require("knockout"); + var jQuery = require("jquery"); + require("jquery.ui.sortable"); + factory(ko, jQuery); } else { // No module loader (plain