Remark: Converting remark to es modules

Created on 24 Apr 2017  ·  9Comments  ·  Source: remarkjs/remark

Is this something you'd be interested in community involvement from?

I'd love to work on it, as it would help people using the library in the browser thanks to es module treeshaking capabilities in webpack 2, etc, potentially smaller bundles 👍

🚫 statuwontfix

Most helpful comment

Awesome, thank you Titus! I'll play around in a branch and do some size comparisons.

All 9 comments

Hi Evan, thanks for the issue!

To be honest, I’m not a fan of “ES2020”. Yup, it’s coming to JS everywhere, so the code will change sometime in the future, but I want to wait for stuff to stabilise first. I think support in Node is very important.

Of course, require isn’t standard JS and doesn’t work everywhere, but at least it’s very stable, and I don’t feel modules is stable enough to make the jump.

P.S. I experienced rewriting libraries with CoffeeScript: I’d rather rewrite my stuff as few times as possible :)
P.P.S. I’ve added you to unifiedjs and wooorm/remark, if you want you can work on branches to rewrite remark-parse and unified as modules so we can discuss the results of tree shaking! (let me know if I need to add you to more repo’s)

I want to help this too!

Oh btw I’m very open to more people chiming in!

Awesome, thank you Titus! I'll play around in a branch and do some size comparisons.

@probablyup @Rokt33r Any news for this folks?

Not yet, I've been away for a week and a deadline at work before that.
It'll probably be gradual work for me.
On Thu, May 4, 2017 at 11:43 AM Titus notifications@github.com wrote:

@probablyup https://github.com/probablyup @Rokt33r
https://github.com/Rokt33r Any news for this folks?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/wooorm/remark/issues/252#issuecomment-299225044, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAiy1ulg0mQaOt7-okOz5Ly4zDF-sAcvks5r2fINgaJpZM4NFy3c
.

:+1: Do let me know if you need help!

I'll start working this on this weekend.

Closing for now, I’m still super open to it, if it actually makes things smaller!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

niftylettuce picture niftylettuce  ·  4Comments

niksurff picture niksurff  ·  4Comments

wooorm picture wooorm  ·  4Comments

gengjiawen picture gengjiawen  ·  4Comments

pd4d10 picture pd4d10  ·  5Comments