From d87d9fb493174dfe864e7c832bca9a1a3acb6c41 Mon Sep 17 00:00:00 2001 From: Tijmen Baarda Date: Wed, 4 Sep 2024 15:45:25 +0200 Subject: [PATCH] Add Tabulator to globals in Rollup config --- frontend/rollup.config.js | 3 ++- frontend/vre/record/record.list.view.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/rollup.config.js b/frontend/rollup.config.js index e10e3740..22b70555 100644 --- a/frontend/rollup.config.js +++ b/frontend/rollup.config.js @@ -9,7 +9,7 @@ var extension = /.js$/; export default { input: 'vre/main.js', - external: ['jquery', 'lodash', underscorePattern, 'backbone'], + external: ['jquery', 'lodash', underscorePattern, 'backbone', 'tabulator'], plugins: [ wontache(), nodeResolve(), @@ -24,6 +24,7 @@ export default { case 'lodash': return '_'; case 'underscore': return '_'; case 'backbone': return 'Backbone'; + case 'tabulator': return 'Tabulator'; } var lastPart = _.last(id.split('/')).replace(extension, ''); if (lastPart === 'underscore') return '_'; diff --git a/frontend/vre/record/record.list.view.js b/frontend/vre/record/record.list.view.js index 02c960c2..ac8f26a1 100644 --- a/frontend/vre/record/record.list.view.js +++ b/frontend/vre/record/record.list.view.js @@ -2,6 +2,7 @@ import Backbone from "backbone"; import {properties} from "../utils/record-ontology"; import {getStringLiteral} from "../utils/jsonld.model"; import {vreChannel} from "../radio"; +import Tabulator from "tabulator"; export var RecordListView = Backbone.View.extend({ id: "record-list",