Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrate to nanohtml #2548

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17,118 changes: 16,633 additions & 485 deletions builds/respec-w3c.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/respec-w3c.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions js/deps/nanohtml.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import nanohtml from "nanohtml/dom";
export { default as raw } from "nanohtml/lib/raw-browser";

export const html = nanohtml(document);
9 changes: 9 additions & 0 deletions js/deps/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ export default [
input: "js/deps/marked.js",
...template
},
{
input: "js/deps/nanohtml.js",
onwarn(warning, warn) {
if (warning.code !== "CIRCULAR_DEPENDENCY") {
warn(warning);
}
},
...template
},
{
input: "js/deps/pluralize.js",
...template
Expand Down
4 changes: 0 additions & 4 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ module.exports = function(config) {
pattern: "node_modules/idb/**/*.js",
included: false,
},
{
pattern: "node_modules/hyperhtml/**/*.js",
included: false,
},
{
pattern: "node_modules/webidl2/**/*.js",
included: false,
Expand Down
Loading