UNPKG

@mpxjs/webpack-plugin

Version:

mpx compile core

7 lines (6 loc) 162 B
module.exports = function changeKey (input, srcKey, targetKey) { const value = input[srcKey] delete input[srcKey] input[targetKey] = value return input }