Skip to content

Commit

Permalink
don't use '.js' in beautify esm imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed May 28, 2018
1 parent ac08071 commit df93251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/update-jsbeautify.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ update('beautify-web/js-beautify', 'LICENSE', './src/beautify/beautify-license')
update('beautify-web/js-beautify', 'js/lib/beautify-html.js', './src/beautify/esm/beautify-html.js', true, function (contents) {
contents = contents.replace(
/\(function\(\) \{\nvar legacy_beautify_html/m,
`import { js_beautify } from "./beautify.js";
import { css_beautify } from "./beautify-css.js";
`import { js_beautify } from "./beautify";
import { css_beautify } from "./beautify-css";
var legacy_beautify_html`
);
Expand Down
4 changes: 2 additions & 2 deletions src/beautify/esm/beautify-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
});
*/

import { js_beautify } from "./beautify.js";
import { css_beautify } from "./beautify-css.js";
import { js_beautify } from "./beautify";
import { css_beautify } from "./beautify-css";

var legacy_beautify_html =
/******/ (function(modules) { // webpackBootstrap
Expand Down

0 comments on commit df93251

Please sign in to comment.