Skip to content

Commit

Permalink
Merge pull request #1 from jeffalo/dep-cleanup
Browse files Browse the repository at this point in the history
Remove dependency on `object.entries` to make 11ty leaner
  • Loading branch information
zachleat authored Jan 16, 2025
2 parents d3097f4 + 2635bf5 commit 953284d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"evaluate-value": "^2.0.0",
"http-equiv-refresh": "^2.0.1",
"list-to-array": "^1.1.0",
"object.entries": "^1.1.7",
"parse-srcset": "^1.0.2"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use strict";
const entries = require("object.entries");
const {expect} = require("chai");
const {filter} = require("./lib/defaultOptions");
const plugin = require("./lib");
Expand All @@ -9,7 +8,7 @@ const voidTags = require("html-tags/void");



const fixturesWithAttributes = entries(filter).reduce((result, [tagName, attrs]) =>
const fixturesWithAttributes = Object.entries(filter).reduce((result, [tagName, attrs]) =>
{
Object.keys(attrs).forEach(attrName =>
{
Expand Down

0 comments on commit 953284d

Please sign in to comment.