Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mysticatea/webpack-issue
https://github.com/mysticatea/webpack-issue
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mysticatea/webpack-issue
- Owner: mysticatea
- License: mit
- Created: 2018-06-07T22:32:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-07T22:44:35.000Z (over 6 years ago)
- Last Synced: 2024-05-02T06:14:43.192Z (8 months ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Webpack breaks the code in production mode
## Repro steps
- webpack": 4.11.1
1. `git clone https://github.com/mysticatea/webpack-issue.git`
2. `cd webpack-issue`
3. `npm it`## Details
- The source code: [src/index.js](./src/index.js)
- The result code: [dist/main.js](./dist/main.js)The result code contains a re-assignment to a `const` variable.
```js
const r=e[t];(r=r).fatal||r.ruleId||!r.message.includes("eslint-disable")||console.log(r)
```It looks like a confusion about inlining local functions.