How are these names being resolved?

I know this is a rather basic question. Please forgive.

I have some lines of code in a three javascript function like this:

import 	{
		Brush,
		Evaluator,
		ADDITION,
		SUBTRACTION,
		INTERSECTION,
		DIFFERENCE,
	} 			from '..';


Where is the … location ?

Thanks

OLDMAN

It depends on the bundler / project structure.

If this is a run-time import - the .. is the index file in one directory above the current one (ex https://game.com/some/path/script.jshttps://game.com/some/index.js) Keep in mind this is one directory above in the hierarchy served by the server - not the hierarchy you have in your project. They may differ significantly depending on the bundler.

If this is compile-time import - the .. is the index file in one directory above the current one, simply in your project files:

↳ project
  ↳ src
    ↳ somedirectory
      index.js // `..` in `subdirectory/script.js` will point to this index.js
      ↳ subdirectory
        script.js