Why importing from the same file? #157
                  
                    
                      zeritonius
                    
                  
                
                  started this conversation in
                General
              
            Replies: 1 comment 1 reply
-
| It's not importing from the same file, but from the same directory, so that import could also look like: import { Directive } from './index'but shorter | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What are the benefits of importing from the same file, please? I'm not familiar with this approach.
Example:
https://github.com/vuejs/petite-vue/blob/main/src/directives/effect.ts
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions