Web: Import JavaScript modules by path, without an import map.
Change-Id: I2142ddb12e4eb39ec2a80947f6f77d5a6c9812a6
diff --git a/src/main/resources/META-INF/resources/admin/AdminElement.js b/src/main/resources/META-INF/resources/admin/AdminElement.js
index e49c606..1fdfbe7 100644
--- a/src/main/resources/META-INF/resources/admin/AdminElement.js
+++ b/src/main/resources/META-INF/resources/admin/AdminElement.js
@@ -1,5 +1,5 @@
-import {html, render} from "lit-html";
-import {createStore} from "redux";
+import {html, render} from "../web_modules/lit-html.js";
+import {createStore} from "../web_modules/redux.js";
export class AdminElement extends HTMLElement {
constructor() {
diff --git a/src/main/resources/META-INF/resources/admin/index.html b/src/main/resources/META-INF/resources/admin/index.html
index 919c44b..f4db272 100644
--- a/src/main/resources/META-INF/resources/admin/index.html
+++ b/src/main/resources/META-INF/resources/admin/index.html
@@ -5,9 +5,7 @@
<meta charset="UTF-8">
<title>MulkCMS Admin</title>
- <script defer src="/node_modules/es-module-shims/dist/es-module-shims.js"></script>
- <script type="importmap-shim" src="/web_modules/import-map.json"></script>
- <script type="module-shim" src="/admin/admin.js"></script>
+ <script type="module" src="/admin/admin.js"></script>
</head>
<body>
diff --git a/src/main/resources/META-INF/resources/package.json b/src/main/resources/META-INF/resources/package.json
index 714a895..6100124 100644
--- a/src/main/resources/META-INF/resources/package.json
+++ b/src/main/resources/META-INF/resources/package.json
@@ -1,6 +1,5 @@
{
"dependencies": {
- "es-module-shims": "^0.4.6",
"lit-html": "^1.1.2",
"normalize.css": "^8.0.1",
"redux": "^4.0.5",