nassh: concat: hack libdot & hterm into es6 module
Shove an "export" statement onto the end of the concat file for libdot
and hterm to get an es6 module we can import in nassh.
Also extend the concat API slightly to suppress the "use strict" line
when generating ES module output.
Bug: https://crbug.com/1350884
Change-Id: Ieb4e6a3374ded22219fc48b743a74287d6c8abcd
Reviewed-on: https://chromium-review.googlesource.com/c/apps/libapps/+/3935498
Reviewed-by: Joel Hockey <joelhockey@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
diff --git a/terminal/js/terminal_emulator.js b/terminal/js/terminal_emulator.js
index ed7d19a..a7875f1 100644
--- a/terminal/js/terminal_emulator.js
+++ b/terminal/js/terminal_emulator.js
@@ -11,6 +11,8 @@
// TODO(b/236205389): support option smoothScrollDuration?
+import {hterm, lib} from './deps_local.concat.js';
+
import {LitElement, css, html} from './lit.js';
import {FontManager, ORIGINAL_URL, TERMINAL_EMULATORS, definePrefs,
delayedScheduler, fontManager, getOSInfo, sleep} from './terminal_common.js';