File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1- import yaml from 'js- yaml' ;
1+ import YAML from 'yaml' ;
22
33// development host for playground proxy
44const PLAYGROUND_PROXY_HOST = 'http://localhost:8788' ;
@@ -15,7 +15,7 @@ const drafts = [
1515] ;
1616
1717export 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' ) ;
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments