Skip to content

Instantly share code, notes, and snippets.

@abachuk
Created November 22, 2017 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abachuk/8c19d97a0a722e66cfada4814b3b2ba1 to your computer and use it in GitHub Desktop.
Save abachuk/8c19d97a0a722e66cfada4814b3b2ba1 to your computer and use it in GitHub Desktop.
// 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
@erop
Copy link

erop commented May 5, 2018

Looks like line 20 should be something like this:
// fly() was never imported...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment