Remove webpack

We no longer need webpack to polyfill dynamic imports because the vast
majority of browser now support ES modules and dynamic imports.
This commit is contained in:
Zaid Abdulla committed 2021-01-25 13:16:56 -08:00
1 parent 6cca59c666
commit 44748e5769
6 files changed
+70 -601

No files matched your search

+17 -14
View File
@@ -28,21 +28,24 @@ const component: ClosureComponent = (): Component => {
name: vnode.attrs["id"],
value: vnode.attrs["value"],
oncreate: (_vnode) => {
const editor = codeMirror.fromTextArea(_vnode.dom, {
mode: vnode.attrs["mode"],
lineNumbers: true,
readOnly: vnode.attrs["readOnly"],
extraKeys: {
"Ctrl-Enter": () => {
if (vnode.attrs["onSubmit"])
vnode.attrs["onSubmit"](_vnode.dom);
const editor = codeMirror.fromTextArea(
_vnode.dom as HTMLTextAreaElement,
{
mode: vnode.attrs["mode"],
lineNumbers: true,
readOnly: vnode.attrs["readOnly"],
extraKeys: {
"Ctrl-Enter": () => {
if (vnode.attrs["onSubmit"])
vnode.attrs["onSubmit"](_vnode.dom);
},
"Cmd-Enter": () => {
if (vnode.attrs["onSubmit"])
vnode.attrs["onSubmit"](_vnode.dom);
},
},
"Cmd-Enter": () => {
if (vnode.attrs["onSubmit"])
vnode.attrs["onSubmit"](_vnode.dom);
},
},
});
}
);
if (vnode.attrs["onChange"]) {
editor.on("change", (e) => {