Do you want to request a feature or report a bug?
What is the current behavior?
When I try to load dynamic module with
import('/path/to/my/module.js').then() it work, but when i try to import module with
import(rootPath + '/' + myModuleName + '/index.js').then() it doesn’t work.
Error: Cannot find module '/Users/hubert_i/Emodyz/launcher-ezgames.eu/modules/test/index.js'. at /Users/hubert_i/Emodyz/launcher-ezgames.eu/dist/electron/main.js:10475:9 at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7)
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Dynamic import with variable
Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.
webpack => 3.10.0
npm => 5.6.0
yarn => 1.5.1
Node.js => v9.6.1
Operating System => macOs High Sierra