Import preview from esmodule
Several problems with the import of the es module:
1/ Importing the preview module from npm's localhost doesn't work but it works from the unpkg version
The following code don't work:
import { Previewer } from 'http://localhost:9090/dist/paged.esm.js';
Error in the console: Uncaught TypeError: Failed to resolve module specifier "event-emitter". Relative references must start with either "/", "./", or "../".
i
2/ Each element of the pages is preceded by a <html>
tag.
3/ The content is rendered twice. Once in the template pages and a second time outside the pages.
Test file: esm-test.html