Created
November 22, 2017 19:29
-
-
Save abachuk/8c19d97a0a722e66cfada4814b3b2ba1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// modules.js | |
export function drive(props) { | |
return props.gas | |
} | |
export function fly(props) { | |
return props.miles | |
} | |
// main.js | |
import { drive } from modules; | |
/// some code | |
eventHandler = (event) => { | |
event.preventDefault() | |
drive({ gas: event.target.value }) | |
} | |
/// some code | |
// fly() was never importent and won't be included in our bundle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like line 20 should be something like this:
// fly() was never imported...