Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace smpltmpl dependency with internal function #111

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

targos
Copy link
Member

@targos targos commented Apr 6, 2020

smpltmpl depends on babel-code-frame, which, with its subdependencies
adds about 10 unnecessary packages to the tree in production.
Moreover, it interpolates the template by running it as code in a Node.js
vm, which is not that simple, for a "simple" library.
Replace it with a simple internal implementation.

@thetutlage
Copy link
Member

The test is failing on windows coz of the newline character. Mind fixing it? https://ci.appveyor.com/project/thetutlage/ace/builds/31990978/job/tahjb4piqfdjgioq

smpltmpl depends on babel-code-frame, which, with its subdependencies
adds about 10 unnecessary packages to the tree in production.
Moreover, it interpolates the template by running it as code in a Node.js
vm, which is not that simple, for a "simple" library.
Replace it with a simple internal implementation.
@targos
Copy link
Member Author

targos commented Apr 8, 2020

Done!

@thetutlage thetutlage merged commit 0e00817 into adonisjs:develop Apr 8, 2020
@thetutlage
Copy link
Member

Looks rad! Thanks 😄

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