qjebbs / vscode-markdown-extended

Extended syntaxes to built-in markdown & What you see is what you get exporter.
MIT License
123 stars 25 forks source link

Move `puppeteer` to `devDependencies` #142

Closed Stanzilla closed 1 year ago

Stanzilla commented 1 year ago

This is to make sure it is not included in the extension bundle. Fixes #137

qjebbs commented 1 year ago

what's the benefit does this PR bring? Have you ever test it for chromium not download to node_modules with this change?

Stanzilla commented 1 year ago

It fixes the mentioned issue. The extension is now around 4mb instead of 200

qjebbs commented 1 year ago

I see, I forgot to delete the chromium after I tested the plugin, and published it.

I have two questions:

Seems that set to devDependencies doesn't change the circumstances.

LucasFA commented 9 months ago

Now puppeteer isn't shipped to the user innecessarily, but yes, adding it to devDependencies does mean that it isn't shipped to the user. You don't need to manually delete it in a shell.

Check vsce's documentation: it has a note indicating that devDependencies are automatically ignored, along with all the rest of files in .vscodeignore that are not needed at runtime

Same reasoning in general: everything that you need in order to test or build but not at runtime should go as a dev dependency