next-seo icon indicating copy to clipboard operation
next-seo copied to clipboard

Tree Shaking Support

Open schlosser opened this issue 3 years ago • 22 comments

Hello! I'd like to import NextSEO into my project without including all of the JSON LD functions I'm not using. At the moment next-seo is taking up a significant amount of my bundle size for all pages.

I tried following @joeyorlando's steps here: https://github.com/garmeeh/next-seo/issues/75#issuecomment-705152810, to no avail. Is there a supported way to implement tree shaking?

schlosser avatar Mar 06 '21 22:03 schlosser

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Apr 05 '21 23:04 stale[bot]

Yep! I'd love a response to understand if anyone has had any luck tree shacking the JSON LD code from next-seo.

schlosser avatar Apr 06 '21 01:04 schlosser

Couldn't get any of the steps working either, so +1

iffa avatar May 07 '21 18:05 iffa

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jun 06 '21 18:06 stale[bot]

Definitely still relevant!

schlosser avatar Jun 07 '21 18:06 schlosser

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jul 07 '21 23:07 stale[bot]

Definitely still relevant!

riccardogiorato avatar Jul 08 '21 05:07 riccardogiorato

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Aug 07 '21 10:08 stale[bot]

Still relevant 💯

mryechkin avatar Aug 08 '21 01:08 mryechkin

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Sep 07 '21 04:09 stale[bot]

Definitely still relevant!

riccardogiorato avatar Sep 07 '21 04:09 riccardogiorato

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Oct 07 '21 06:10 stale[bot]

Yes! still relevant. Maybe migrating to webpack 5 would help here? I'm not sure.

schlosser avatar Oct 13 '21 15:10 schlosser

Should this be re-opened? It's still relevant.

schlosser avatar Oct 21 '21 14:10 schlosser

Yes apologies @schlosser. I need to disable stale bot 🤦‍♂️

garmeeh avatar Oct 21 '21 14:10 garmeeh

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Nov 20 '21 17:11 stale[bot]

Still relevant!

mryechkin avatar Nov 20 '21 17:11 mryechkin

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Dec 21 '21 14:12 stale[bot]

Is this still relevant?

Yep

mryechkin avatar Dec 21 '21 14:12 mryechkin

hi @garmeeh , thanks for this great library, have you tried already setting "sideEffects": false, in the package.json? assuming there are no sideEffects that would help I guess, otherwise you can list those files which do have sideEffects in an array, see webpack docs

cheers

kuus avatar Feb 21 '22 10:02 kuus

I'm also interested in tree shaking support.

dkelsen avatar Nov 04 '23 13:11 dkelsen

Yeah, same! It'd be really useful to have tree shaking support.

icazevedo avatar Dec 22 '23 15:12 icazevedo