From d456f6e25e5bbe5851918c63febee7b1cb028b57 Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Thu, 29 Oct 2020 14:32:42 +0100 Subject: [PATCH] Bundling multiple JS files into one single file Transcrypt 3.7 generates multiple JS files in __target__ directory. All output files will be bundled into one single file with the rollup module bundler (rollup.js). Unfortunately the information of the original sourcemap file will be lost. --- .gitignore | 3 ++- Makefile | 1 + OOMAnalyser.html | 8 +++----- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index e3db365..bdbfa40 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ env/ .idea # Generated (compiled) JavaScript code -__target__/ \ No newline at end of file +__target__/ +OOMAnalyser.js \ No newline at end of file diff --git a/Makefile b/Makefile index 47c736d..188b324 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,7 @@ venv-clean: build: venv . $(VIRTUAL_ENV)/bin/activate transcrypt --build --map --nomin -e 6 OOMAnalyser.py + rollup --format=umd --name OOMAnalyser --file=OOMAnalyser.js -- __target__/OOMAnalyser.js #+ Serve the current directory on http://127.0.0.1:8080 websrv: diff --git a/OOMAnalyser.html b/OOMAnalyser.html index 5932b41..5c08f00 100644 --- a/OOMAnalyser.html +++ b/OOMAnalyser.html @@ -1,7 +1,7 @@ - + OOM Analyser @@ -839,10 +839,8 @@ function goBack() {

Installation steps

    -
  1. Create an own directory and add a __target__ subdirectory
  2. -
  3. Download the HTML file to the main directory and - the JavaScript file to the - __target__ subdirectory +
  4. Download the HTML file and the + JavaScript file to the main directory
  5. Open the file OOMAnalyser.html in your favourite browser.