You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught SyntaxError: redeclaration of import LitElement3k1axR86sr.js:3:9note: Previously declared at line 1, column 9
One way to fix this would be to add an async callback to the bundles option which provides an api to collect sources and write outputs, or to do so in the transforms option.
eleventyConfig.addPlugin(bundlerPlugin,{transforms: [asyncfunction(content,collect){// this.type returns the bundle name.if(this.type==='js'&&// proposal: this.attributes exposes the source element's attributesthis.attributes.type==='module'){collect(this,content);returnfalse;// don't bundle, instead hold the item in memory}},asyncfunction(content){if(this.type==bundlerPlugin.collection){// a Symbol()const{ build }=awaitimport('esbuild');constresult=awaitbuild({bundle: true,/* ... collected has source strings and metadata, etc */entryPoints: writeToTmpAndMakeEntryPointsConfig(collected),});const[{ path, contents }]=result.outputFiles;return{url: path,content: contents,}}}],});
above APIs are proposals for discussion only, salt to taste.
The text was updated successfully, but these errors were encountered:
ab.webc:
cd.webc:
index.webc:
One way to fix this would be to add an async callback to the
bundles
option which provides an api to collect sources and write outputs, or to do so in thetransforms
option.above APIs are proposals for discussion only, salt to taste.
The text was updated successfully, but these errors were encountered: