// index.js import something from "./other.js" console.log(something)
// other.js export default "something"
Make sure you reference dependencies relatively with
../ to ensure they’re treated as dependencies.
import npm packages as you would normally expect. It will look for packages in the
node_modules folder at the root of your project.