Skip to content

Conversation

@GravetoGeek
Copy link

This pull request introduces a default export to the velocity.js library. This change enhances compatibility with environments that expect a default export when using ECMAScript Module (ESM) import syntax (import ... from ...).

Motivation:

Currently, velocity.js primarily exports its functionalities (render, parse, Compile, Helper) as named exports using CommonJS (module.exports). While this works well in CommonJS environments, it causes issues in ESM contexts where a default export is expected for the import ... from ... syntax.

@shepherdwind
Copy link
Owner

Thanks for you pr, but ci is failed, and I just fix this myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants