feat(FrameManager): add type=module to addScriptTag (#2090)

This patch adds a new "type" option to the `addScriptTag` method that
allows adding "module" tags to the page.

Fixes #2078
This commit is contained in:
Yaniv Efraim
2018-03-14 22:07:48 +02:00
committed by Andrey Lushnikov
parent 552be1ae87
commit 625c7ebdda
7 changed files with 42 additions and 6 deletions

View File

@@ -0,0 +1,5 @@
{
"parserOptions": {
"sourceType": "module"
}
}

View File

@@ -0,0 +1,2 @@
import num from './es6module.js';
window.__es6injected = num;

View File

@@ -0,0 +1 @@
export default 42;

View File

@@ -0,0 +1,2 @@
import num from './es6/es6module.js';
window.__es6injected = num;