fiddle icon indicating copy to clipboard operation
fiddle copied to clipboard

Avoid external npm package to reinstall at each start

Open fatoldsun00 opened this issue 4 years ago • 2 comments

Hi,

It's more a question than an issue : i searched on issue and doc but i had no found how install npm package.

var pack = require('npmPack') install correctly module and depencies but with no persistance. Each time i start the fiddle the package seems to be reisntall (in the console i got : Installing node modules using npm: npmPack)

It's normal or there are a way to persist npm module ?

Thanks

fatoldsun00 avatar Nov 19 '20 11:11 fatoldsun00

@fatoldsun00 I believe that's currently the expected behavior. Fiddle installs deps automatically once you require them, but there's currently no code to cache these packages between runs.

Going to label this as an enhancement to support this down the road. :)

erickzhao avatar Nov 19 '20 17:11 erickzhao

Ok, thanks for answer. I can maybe look for make PR (if i have time and ... skill ;))

fatoldsun00 avatar Nov 19 '20 19:11 fatoldsun00