Dynamically import lens renderers

This commit is contained in:
Andrew Bastin
2020-06-30 16:11:21 -04:00
parent 94b61e9f7c
commit fe1353b5c7
7 changed files with 17 additions and 11 deletions

View File

@@ -1,7 +1,8 @@
const htmlLens = {
const xmlLens = {
lensName: "XML",
supportedContentTypes: ["application/xml", "image/svg+xml", "text/xml", "application/rss+xml"],
renderer: "xmlres",
rendererImport: () => import("~/components/lenses/renderers/XMLLensRenderer"),
}
export default htmlLens
export default xmlLens