netlify-cms-yoast-seo icon indicating copy to clipboard operation
netlify-cms-yoast-seo copied to clipboard

feat(exports): export YOAST instead of adding to window

Open mihaildu opened this issue 5 years ago • 0 comments

I think it's better to export the variable instead of adding it to window as a global, for example to avoid name conflicts, only importing it where you need it etc.

This will allow the users to import the YOAST object like this

import YOAST from 'netlify-cms-yoast-seo/dist/main.js';

Instead of doing this

import 'netlify-cms-yoast-seo/dist/main.js';

mihaildu avatar Sep 30 '19 10:09 mihaildu