What I want to do
Folder structure is pasted to next comment
I want to import component.js from subwindow.js like below
2.index.html: load mainwindow.js
4.sub.html: load subwindow.js
Also I want to use Chrome’s built-in window.open(). This means I want to set nativeWindowOpen option true.
This program fails to import component.js at step5
The path is different from actual folder structure, I think this may be the cause
But I expect:
How can I import comonent.js from subwindow.js?
Off course, I can import like below
But this is too long…
If someone know any solution, could you help me?