modularize bundler and minify scripts
This commit is contained in:
parent
639967c767
commit
89492a4956
8 changed files with 173 additions and 124 deletions
4
index.js
4
index.js
|
|
@ -24,7 +24,9 @@ m.withAttr = require("./util/withAttr")
|
|||
m.render = renderService.render
|
||||
m.redraw = redrawService.publish
|
||||
|
||||
if (typeof module === "object") module.exports = m
|
||||
if (typeof module === "object") {
|
||||
module.exports = m
|
||||
}
|
||||
else window.m = m
|
||||
|
||||
})()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue