I started to study WebPack now, I was able to use it normally, however, when I want to import something from another file I need to give:
import {abc} from './my-file.js';
and the file that was imported:
export function abc() { console.log('MODULO 1 do projeto'); }
So far so good. But how do I import the whole file? No need to just specify the function or variable I want? I want to import the file and be able to use everything in it (variables, functions and etc ...).
I tried to give only:
import './my-file.js';
However, it does not recognize anything inside this file, it compiles normally, but an error occurs when invoking functions (function has not been defined).
So, is there any way I can import the entire file?