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.
- Host: GitHub
- URL: https://github.com/perry-mitchell/repo-deepmerge-webpack
- Owner: perry-mitchell
- License: mit
- Created: 2018-02-26T18:21:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T19:01:02.000Z (over 8 years ago)
- Last Synced: 2025-02-22T18:24:18.427Z (over 1 year ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.