示例工程 17-pre-module-globals
17-pre-module-globals/04-script-vs-module/dist-script/legacy.js
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
"use strict";
// 没有 import/export:在 moduleDetection legacy 下按脚本编译
var scriptGlobal = 'script';
globalThis.scriptGlobal = scriptGlobal;
//# sourceMappingURL=legacy.js.map