diff --git a/.eleventy.js b/.eleventy.js index f72b60ee..18ca7b03 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -270,7 +270,8 @@ module.exports = function (config) { }) config.addCollection('webFeatures', async () => { - return (await import('web-features')).default + const { features } = await import('web-features') + return features }) config.setLibrary('md', initMarkdownLibrary()) diff --git a/package-lock.json b/package-lock.json index 322605cd..b7510127 100644 --- a/package-lock.json +++ b/package-lock.json @@ -56,7 +56,7 @@ "stylelint-config-standard": "^36.0.0", "terser": "^5.26.0", "transliteration": "^2.3.5", - "web-features": "^0.8.6" + "web-features": "^1.0.0" }, "engines": { "node": ">=16", @@ -15757,9 +15757,9 @@ } }, "node_modules/web-features": { - "version": "0.8.6", - "resolved": "https://registry.npmjs.org/web-features/-/web-features-0.8.6.tgz", - "integrity": "sha512-KsxoK0LewcD+kFyhr6yxyIN5xAaDUb2ZvJQJdwvHsfj57/WVy4Ufwi6bRr9OZB7VFn3t912J9Qa25pTGpi3GoA==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/web-features/-/web-features-1.0.0.tgz", + "integrity": "sha512-U/ppX0h851Fr8LbOVMybiuH3iGWGlPi+DYXoj6VkOvXJc6VgYpSdGDosduYl/4qvW6YNlZ4IaczLgqHqbaU25A==", "dev": true }, "node_modules/webidl-conversions": { diff --git a/package.json b/package.json index cb564704..5945e193 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "stylelint-config-standard": "^36.0.0", "terser": "^5.26.0", "transliteration": "^2.3.5", - "web-features": "^0.8.6" + "web-features": "^1.0.0" }, "dependencies": { "@11ty/eleventy-plugin-vite": "^4.0.0",