Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Build without So.js #19

Closed
jorilallo opened this issue Jul 13, 2018 · 7 comments
Closed

Build without So.js #19

jorilallo opened this issue Jul 13, 2018 · 7 comments

Comments

@jorilallo
Copy link
Contributor

jorilallo commented Jul 13, 2018

slug imports So.js which is huge. Thoughts on moving to webpack compiling to ignore this on the package level?

For library users: add new webpack.IgnorePlugin(/unicode\/category\/So/) to reduce build size.

@tommoor
Copy link
Member

tommoor commented Jul 13, 2018

Thoughts on moving to webpack compiling to ignore this on the package level?

Not 100% sure I follow but down for reducing package size by any means

@jorilallo
Copy link
Contributor Author

@tommoor moving the ignore from library user (host application) to library build step. Now that I think about it, not sure if that would even work

@tommoor tommoor closed this as completed Jul 14, 2018
@iamtekeste
Copy link

@jorilallo I also want to reduce the size of this package, where do I add
new webpack.IgnorePlugin(/unicode\/category\/So/)? Is it on my own webpack config or on this library's?

And is So.js not needed?

@tommoor
Copy link
Member

tommoor commented Jun 1, 2020

Hi, this issue is very old – the library no longer depends on slug.

@iamtekeste
Copy link

I understand this is a full fledged editor and the size is reasonable but can you suggest anyway to reduce the file size? According to bundlephobia it is at 223KB minified+gzipped.

https://bundlephobia.com/result?p=rich-markdown-editor@10.0.0

@tommoor
Copy link
Member

tommoor commented Jun 1, 2020

There's a way to reduce the size of lodash down to only the parts used as part of webpack bundling, I'd take a look at that. Would happily accept a PR.

@iamtekeste
Copy link

Thank you for the quick response. I will take a look into that. Awesome editor by the way!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants