posthtml-expressions
posthtml-expressions copied to clipboard
Adds supports to require() files inside script locals
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
any updates?