stringify-object-values
npm i stringify-object-values
Stringifies each value of an object. This is useful when paired with Webpack's DefinePlugin.
// Before hello: 'world' favorite: 1 equation: '1+1' random: {} arr: // After hello: "'world'" favorite: 1 equation: "'1+1'" random: "{}" arr: "[]"
Usage
var stringify = ;;
webpack.DefinePlugin
With var webpack = ;var stringify = ; moduleexports = plugins: 'process.env': ;