Starcounter-Jack / JSON-Patch

Lean and mean Javascript implementation of the JSON-Patch standard (RFC 6902). Update JSON documents using delta patches.
MIT License
1.79k stars 215 forks source link

rollup warning, this has been rewritten #256

Closed benitogf closed 4 years ago

benitogf commented 4 years ago

not sure if it's a problem with my rollup config, has anyone seen this warning?

image

Starcounter-Jack commented 4 years ago

You could safely ignore that warning. Add the onwarn property to your rollup-config.js file:

onwarn: function(warning) {
    // Skip certain warnings

    // should intercept ... but doesn't in some rollup versions
    if ( warning.code === 'THIS_IS_UNDEFINED' ) { return; }

    // console.warn everything else
    console.warn( warning.message );
}