For context, see KyleAMathews/deepmerge/issues/97 and KyleAMathews/deepmerge/issues/87.
[email protected]:perry-mitchell/repo-deepmerge-webpack.git
cd repo-deepmerge-webpack
npm install
npm test
If you change the first line of index.js
to
import merge from "deepmerge"
then Webpack correctly returns the function.
If you do a CommonJS import:
const merge = require("deepmerge")
then Webpack returns the exports
property on whatever was exported by deepmerge, which is undefined
.