Open
Description
Is there any way to import a node-installed library into a webc:setup script?
Trying this in a webc file fails silently:
<script webc:setup>
import Fetch from '@11ty/eleventy-fetch'
</script>
These also do not work:
<script webc:setup>
const Fetch = await import('@11ty/eleventy-fetch')
</script>
<script webc:setup>
const Fetch = require('@11ty/eleventy-fetch')
</script>
Even if this isn't possible or desirable, silent failure—aborting compilation altogether—also seems like an issue here (though it's not clear to me if that issue is here or in eleventy-plugin-webc)
Metadata
Metadata
Assignees
Labels
No labels