An open API service indexing awesome lists of open source software.

https://github.com/perry-mitchell/repo-deepmerge-webpack

Test repo for deepmerge issue with webpack.
https://github.com/perry-mitchell/repo-deepmerge-webpack

Last synced: about 1 year ago
JSON representation

Test repo for deepmerge issue with webpack.

Awesome Lists containing this project

README

          

# Reproduction repo for deepmerge bug /w webpack

For context, see [KyleAMathews/deepmerge/issues/97](https://github.com/KyleAMathews/deepmerge/issues/97) and [KyleAMathews/deepmerge/issues/87](https://github.com/KyleAMathews/deepmerge/issues/87).

## To reproduce

```sh
git@github.com:perry-mitchell/repo-deepmerge-webpack.git
cd repo-deepmerge-webpack

npm install
npm test
```

## Further detail

If you change the first line of `index.js` to

```js
import merge from "deepmerge"
```

then Webpack correctly returns the function.

If you do a CommonJS import:

```js
const merge = require("deepmerge")
```

then Webpack returns the `exports` property on whatever was exported by deepmerge, which is `undefined`.