ProjectEvergreen / wcc

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

Feature/issue 140 adopt ESM and bundler friendly fork of escodegen #141

Closed thescientist13 closed 8 months ago

thescientist13 commented 9 months ago

Related Issue

resolves #140

Summary of Changes

  1. Refactor for ESM ecodegen API and update rollup.config.js to validate
  2. Drop json Rollup plugin
  3. Upgrade to Rollup 3.x

Will break because escodegen needs type="module" and patch-package does not track package.json change, so it will have to be done manually for testing locally

TODO

  1. [x] Fork and patch with package.json changes
    • type="module"
    • engines >= 18.x
    • export maps
  2. [x] When will Rollup support import assertions? v4 no longer allows custom acorn plugins - not right now
  3. [x] Test in upstream in Greenwood - https://github.com/ProjectEvergreen/greenwood/pull/1201
  4. [x] Clean up comments and prepare for merge
netlify[bot] commented 9 months ago

Deploy Preview for merry-caramel-524e61 failed.

Name Link
Latest commit 7baf581f6a045fdfd5b2f59a3c30969271d8752c
Latest deploy log https://app.netlify.com/sites/merry-caramel-524e61/deploys/65c8119b29b3810008055d2b