1
I started studying Webpack now, managed to use it normally though, when I want to import something from another file I need to give:
import {abc} from './my-file.js';
and in the file that was imported:
export function abc() { console.log('MODULO 1 do projeto'); }
Until then OK. However, how do I import the entire file? No need to specify just 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 error occurs when invoking functions (function has not been defined).
So, is there any way I can import the entire file?