-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Milestone
Description
updated with the latest versions (29.06.2017)
Webpack - 3.0.0
Babel-preset-env - 1.5.2
Node - 8.1.2
OS X - 10.12.5
Current
Tree shaking is not removing imports, not used in the app.
Expected
Tree shaking, removing not used imports.
The test case is a simple app with React & React Router v4. Link component is not used, but the whole router package is bundled.
import React from 'react'
import ReactDOM from 'react-dom'
import { Link } from 'react-router-dom'
ReactDOM.render(
<p>Hey</p>,
document.getElementById('app')
)capaj, sibelius, kazazor, m-shulipa, jorgebucaran and 56 more