From d6ae1232d2b3c3c0cbff7e8a2a1046596425fe97 Mon Sep 17 00:00:00 2001
From: Chris <chris@chrissnijder.nl>
Date: Thu, 4 Feb 2021 00:28:48 +0100
Subject: [PATCH] Bundling and optimising using esbuild (experimental but if it
 works it works..)

---
 snowpack.config.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/snowpack.config.js b/snowpack.config.js
index cead63d..45d65b7 100644
--- a/snowpack.config.js
+++ b/snowpack.config.js
@@ -15,8 +15,9 @@ module.exports = {
     // {"match": "routes", "src": ".*", "dest": "/index.html"},
   ],
   optimize: {
-    /* Example: Bundle your final build: */
-    // "bundle": true,
+    bundle: true,
+    minify: true,
+    target: 'es2017'
   },
   packageOptions: {
     /* ... */
-- 
GitLab