bodymovin / bodymovin-extension

Bodymovin UI extension panel
MIT License
286 stars 874 forks source link

Why rewrite `path.parse`? #174

Open aztack opened 4 months ago

aztack commented 4 months ago

In https://github.com/bodymovin/bodymovin-extension/blob/4f1de8ebfe5beaebc4c7d54fbbdf363ca685478c/src/helpers/ImageProcessorHelper.js#L4 You overwrite the builtin function like this:

var path = require('path');
path.parse = function(_path){
    return {
        dir:''
    }
}

Is this a workaround?