aboutsummaryrefslogtreecommitdiff
path: root/static/package.json
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-11-05 19:34:01 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-11-05 19:42:11 +0100
commitc0968d263d5531d21a6ff9df111d63ca2c6e43fa (patch)
tree601985ac047b4ba818a265cee4c1c90eac839d4e /static/package.json
parentLimit exports to those used by imports. (diff)
downloadcalp-c0968d263d5531d21a6ff9df111d63ca2c6e43fa.tar.gz
calp-c0968d263d5531d21a6ff9df111d63ca2c6e43fa.tar.xz
Start depending on npm.
Chromium can't handle JavaScript-modules in XHTML-document [1]. The workaround is to use a javascript bundler. Here we start depending on browserify. I evaluated both that and webpack, and browserify seemed to work marginally better with typescript. Unfortunately this also makes us depend on npm, where we unfortunately already are bloatet... $ ls static/node_modules | wc -l 174 [1]: https://bugs.chromium.org/p/chromium/issues/detail?id=717643
Diffstat (limited to 'static/package.json')
-rw-r--r--static/package.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/static/package.json b/static/package.json
new file mode 100644
index 00000000..a25830a1
--- /dev/null
+++ b/static/package.json
@@ -0,0 +1,6 @@
+{
+ "dependencies": {
+ "browserify": "^17.0.0",
+ "tsify": "^5.0.4"
+ }
+}