mirror of
https://github.com/beautifier/js-beautify.git
synced 2024-11-27 14:40:23 +00:00
export the same variable as the other methods
This commit is contained in:
parent
513dfdb5f7
commit
1096681920
@ -707,8 +707,10 @@
|
||||
if (typeof define === "function") {
|
||||
// Add support for require.js
|
||||
define(["./beautify.js", "./beautify-css.js"], function(js_beautify, css_beautify) {
|
||||
return function(html_source, options) {
|
||||
return {
|
||||
html_beautify: function(html_source, options) {
|
||||
return style_html(html_source, options, js_beautify, css_beautify);
|
||||
}
|
||||
};
|
||||
});
|
||||
} else if (typeof exports !== "undefined") {
|
||||
|
Loading…
Reference in New Issue
Block a user