posthtml-expressions icon indicating copy to clipboard operation
posthtml-expressions copied to clipboard

Adds supports to require() files inside script locals

Open arthurfiorette opened this issue 2 years ago • 1 comments

Proposed Changes

This PR adds require() to the vm context when executing code from <script locals>.

Types of Changes

  • [ ] Bug (non-breaking change which fixes an issue)
  • [x] Feature (non-breaking change which adds functionality)
  • [ ] Breaking Change (fix or feature which changes existing functionality)

Checklist

  • [x] I have read the CONTRIBUTING guide
  • [x] Lint and unit tests pass with my changes
  • [x] I have added tests that prove my fix is effective/works
  • [x] I have added necessary documentation (if appropriate)
  • [ ] Any dependent changes are merged and published in downstream modules

Reviewers: @mrmlnc, @jescalan, @michael-ciniawsky, @posthtml/collaborators

arthurfiorette avatar Jul 10 '23 17:07 arthurfiorette

any updates?

arthurfiorette avatar Sep 23 '23 15:09 arthurfiorette