File tree 4 files changed +7
-6
lines changed
4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
- const EleventyFetch = require ( '@11ty/eleventy-fetch' )
1
+ import EleventyFetch from '@11ty/eleventy-fetch'
2
2
3
- module . exports = async function ( ) {
3
+ export default async function ( ) {
4
4
const url = 'https://api.github.com/orgs/x-govuk/repos'
5
5
6
6
return EleventyFetch ( url , {
Original file line number Diff line number Diff line change 1
- const rssPlugin = require ( '@11ty/eleventy-plugin-rss' )
2
- const govukEleventyPlugin = require ( '@x-govuk/govuk-eleventy-plugin' )
1
+ import rssPlugin from '@11ty/eleventy-plugin-rss'
2
+ import govukEleventyPlugin from '@x-govuk/govuk-eleventy-plugin'
3
3
4
- module . exports = function ( eleventyConfig ) {
4
+ export default function ( eleventyConfig ) {
5
5
eleventyConfig . addPlugin ( rssPlugin )
6
6
7
7
eleventyConfig . addPlugin ( govukEleventyPlugin , {
File renamed without changes.
Original file line number Diff line number Diff line change 33
33
"engines" : {
34
34
"node" : " ^20.0.0"
35
35
},
36
- "private" : true
36
+ "private" : true ,
37
+ "type" : " module"
37
38
}
You can’t perform that action at this time.
0 commit comments