1

To make my code more readable I would like to split all my functions into different files. I have tried:

import {myExport} from '/function.js'

but unfortunately, this isn't working. Any ideas on how to make the index.js as a single entry point?

Nick Parsons
  • 45,728
  • 6
  • 46
  • 64
  • Does this help you? https://stackoverflow.com/questions/53211185/javascript-import-class-from-file-yields-uncaught-syntaxerror-unexpected-ident/53211338#53211338 – Bhojendra Rauniyar Mar 23 '19 at 12:04

0 Answers0