https://github.com/thgh/rollup-treeshake-issue
https://github.com/thgh/rollup-treeshake-issue
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/thgh/rollup-treeshake-issue
- Owner: thgh
- Created: 2019-02-09T22:05:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-09T22:07:05.000Z (over 7 years ago)
- Last Synced: 2025-02-05T14:13:38.332Z (over 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Run these commands
npm install
npm run build
# parse the output with acorn (should fail)
npm run verify
The second command fails because of this code:
```
function ee(r, i, a) {
if (a) {
var s = [];
return e.addRange(s, e.map(a.decorators, ne)), e.addRange(s, e.flatMap(a.parameters, ie)),
function(r, i, a) {
function(e, r, n) {
D.emitDecoratorMetadata &&
(ae(e) && n.push(o(t, "design:type", ce(e))), se(e) && n.push(o(t, "design:paramtypes", ue(e, r))), oe(e) && n.push(o(t, "design:returntype", le(e))));
}(r, i, a);
}(r, i, s), s
}
}
```
Notice that the functions on line 5&6 don't have a name: `function(r, i, a)` `function(e, r, n)`