From 7ba5a7ad32118bea04f206121503a91935213266 Mon Sep 17 00:00:00 2001 From: Jack Reed Date: Tue, 8 Dec 2020 07:08:13 -0700 Subject: [PATCH] Add basic esbuild support --- esbuild/index.html | 10 ++++++++++ package.json | 2 ++ src/index.js | 4 ++-- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 esbuild/index.html diff --git a/esbuild/index.html b/esbuild/index.html new file mode 100644 index 0000000..1ef3acc --- /dev/null +++ b/esbuild/index.html @@ -0,0 +1,10 @@ + + + + Basic Mirador + + +
+ + + diff --git a/package.json b/package.json index 66464e5..c983c04 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "", "private": true, "scripts": { + "esbuild": "esbuild src/index.js --bundle --define:process.env.NODE_ENV=\\\"production\\\" --outfile=dist/esbuild.js --external:domain --minify", "parcel": "parcel parcel/index.html", "webpack": "webpack --config webpack/webpack.config.js", "test": "echo \"Error: no test specified\" && exit 1" @@ -12,6 +13,7 @@ "license": "ISC", "dependencies": { "css-loader": "^3.6.0", + "esbuild": "^0.8.21", "mirador": "^3.0.0", "mirador-image-tools": "^0.10.0", "parcel-bundler": "^1.12.4", diff --git a/src/index.js b/src/index.js index 2e8b000..9bb237f 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ import Mirador from 'mirador/dist/es/src/index'; -import { miradorImageToolsPlugin } from 'mirador-image-tools'; +// import { miradorImageToolsPlugin } from 'mirador-image-tools'; const config = { id: 'demo', @@ -18,5 +18,5 @@ const config = { }; Mirador.viewer(config, [ - ...miradorImageToolsPlugin, + // ...miradorImageToolsPlugin, ]);