From 93fe1353a39500bd9e378b32a0f2d0ccd2a94a6d Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Fri, 24 Jan 2020 11:06:23 +0100 Subject: Web: Import JavaScript modules by path, without an import map. Change-Id: I2142ddb12e4eb39ec2a80947f6f77d5a6c9812a6 --- src/main/resources/META-INF/resources/admin/AdminElement.js | 4 ++-- src/main/resources/META-INF/resources/admin/index.html | 4 +--- src/main/resources/META-INF/resources/package.json | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'src/main') 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 @@ MulkCMS Admin - - - + 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", -- cgit v1.2.3