Closed afercia closed 5 years ago
CR 🚧 We don't want to import yoastseo.js stuff from the node_modules anymore. It should use the global instead.
So as far as I see this requires a PR on YoastSEO.js as MetaDescriptionLengthAssessment
is not in the global exports.
Nevermind, I see now it's exported as assessments.seo
There are 4 other imports from yoastseo stringProcessing
that would need to be updated as well, and I think one of them would need a change in YoastSEO.js. As they're out of the scope of this PR, I'll create a separate issue.
CR 👍
Acceptance 👍
Fixes the snippet preview demo in the standalone app.
To test:
yarn start
and go tolocalhost:3333
Note: since the date in the meta description demo is hardcoded (
Jan 8, 2018 -
) you can actually enter only 143 characters before the progress bar turns into orange.Fixes #740