Skip to content

Commit 5620f97

Browse files
committed
Use YAML instead of js-yaml.
We only need one. Two PRs picked different YAML libraries. This picks one.
1 parent 02bc801 commit 5620f97

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.eleventy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import yaml from 'js-yaml';
1+
import YAML from 'yaml';
22

33
// development host for playground proxy
44
const PLAYGROUND_PROXY_HOST = 'http://localhost:8788';
@@ -15,7 +15,7 @@ const drafts = [
1515
];
1616

1717
export default async function(eleventyConfig) {
18-
eleventyConfig.addDataExtension('yaml', (contents) => yaml.load(contents));
18+
eleventyConfig.addDataExtension('yaml', (contents) => YAML.parse(contents));
1919

2020
eleventyConfig.addPassthroughCopy('.htaccess');
2121
eleventyConfig.addPassthroughCopy('LICENSE.md');

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,5 @@
3131
"rollup": "^4.40.1",
3232
"wrangler": "^4.6.0",
3333
"yaml": "^2.8.0"
34-
},
35-
"dependencies": {
36-
"js-yaml": "^4.1.0"
3734
}
3835
}

0 commit comments

Comments
 (0)