 
      
    | You are here | www.trickster.dev | ||
| | | | | krasimirtsonev.com | |
| | | | | Replacing code for production with Babel transformation / If you are building some sort of an app, Babel is probably part of your build system. It is that thing which converts our fancy code to valid, working in a browser, JavaScript. Just recently at work I had to design a solution that swaps a class based on the environment. Or in another words, we have logic that should not reach our users. The file should be available locally and on our staging environment but not in production. A tiny Babel plugin was the cheapest solution for me so I decided to share the result. | |
| | | | | steakenthusiast.github.io | |
| | | | | PrefaceThis article assumes a preliminary understanding of Abstract Syntax Tree structure and BabelJS. Click Here to read my introductory article on the usage of Babel. It also assumes that you've rea | |
| | | | | lisp-journey.gitlab.io | |
| | | | | A short post to show the usefulness of Hunchentoot-errors and to thank Mariano again.This library adds the current request and session data to your stacktrace, either in the REPL (base case) or in the browser.TLDR;Use it like this:;; (ql:quickload "hunchentoot-errors) ;; ;; We also use easy-routes: (ql:quickload "easy-routes") (defclass acceptor (easy-routes:easy-routes-acceptor hunchentoot-errors:errors-acceptor) () (:documentation "Our Hunchentoot acceptor that uses easy-routes and hunchentoot-errors, ... | |
| | | | | adicool2294.wordpress.com | |
| | | Reblogged on WordPress.com | ||