Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript absolute import

/* 
	Create a jsconfig.json in the root of your project 
    then add the following code snippet.
    
    use replace "src" with "." if you are using NextJS
*/

{
  "compilerOptions": {
    "baseUrl": "src"
  },
  "include": ["src"]
}
 
PREVIOUS NEXT
Tagged: #javascript #absolute #import
ADD COMMENT
Topic
Name
4+2 =