Skip to content

Commit

Permalink
Поднимает версию web-features до 1.0.0 (#1279)
Browse files Browse the repository at this point in the history
Исправляет импорт из модуля `web-features`.
FYI: Начиная с версии 0.10 требуется использовать именованый импорт.
см: https://www.npmjs.com/package/web-features/v/0.10.0
https:/web-platform-dx/web-features/releases/tag/v0.10.0
  • Loading branch information
vitya-ne authored Aug 1, 2024
1 parent 352d4fa commit 5a79aae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5a79aae

Please sign in to comment.