ProjectEvergreen / wcc

Experimental native Web Components compiler.
https://merry-caramel-524e61.netlify.app
90 stars 7 forks source link

Import Attributes syntax parsing #153

Closed thescientist13 closed 7 months ago

thescientist13 commented 7 months ago

Summary

In conjunction with https://github.com/ProjectEvergreen/wcc/issues/152 and https://github.com/ProjectEvergreen/greenwood/issues/923, it would be great to get the needed support in for Import Attributes syntax into WCC's parser.

import data from './data.json' with { type: 'json' }
import sheet from './styles.css' with { type: 'css' }

Details

This will require pulling in some additional acorn plugins to help out with the parsing for the time being.