diff options
-rw-r--r-- | gnu/packages/javascript.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index d5ff5bffee..fbc7388f3d 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm @@ -393,6 +393,12 @@ means that these shams cause many ES5 methods to silently fail.") (lambda _ (substitute* "src/FileSaver.js" (("export ") "")) + #t)) + (add-after 'install 'install-unminified-version + (lambda* (#:key outputs #:allow-other-keys) + (install-file "src/FileSaver.js" + (string-append (assoc-ref outputs "out") + "/share/javascript")) #t))))) (home-page "https://eligrey.com/blog/saving-generated-files-on-the-client-side/") |