Skip to content

Commit

Permalink
split vega related components into lazy loaded bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicBlueberry committed Nov 6, 2024
1 parent b1691c5 commit 946d2ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script setup lang="ts">
import { type VisualizationSpec } from "vega-embed";
import type { VisualizationSpec } from "vega-embed";
import { computed, ref, watch } from "vue";
import { type ComputedRef } from "vue";
import { type components, GalaxyApi } from "@/api";
import { errorMessageAsString } from "@/utils/simple-error";
import VegaWrapper from "./VegaWrapper.vue";
const VegaWrapper = () => import("./VegaWrapper.vue");
const props = defineProps({
invocationId: {
Expand Down
3 changes: 3 additions & 0 deletions client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ const modulesExcludedFromLibs = [
"elkjs",
"@citation-js",
"citeproc",
"vega",
"vega-embed",
"vega-lite",
].join("|");

const buildDate = new Date();
Expand Down

0 comments on commit 946d2ff

Please sign in to comment.