GithubHelp home page GithubHelp logo

Comments (3)

stepugnetti avatar stepugnetti commented on September 25, 2024

I have the same problem. I'm trying to setup multiple builds with re-natal and lein-figwheel and the proposed solution uses :clojure-defines.

from re-natal.

drapanjanas avatar drapanjanas commented on September 25, 2024

A workaround which seems to work is to set it in figwheel-bridge.js like this:

goog.global.CLOSURE_UNCOMPILED_DEFINES = {"future_app.ios.core.DBG":true};

in callback function on load of goog/base.js

It would be cool if this variable could be extracted automatically from not-used.js during the load, but not sure how to implement this right now. Also would be good to understand why just defining CLOSURE_UNCOMPILED_DEFINES before loading of base.js does not work.

Note that in project.clj the override is defined like this:

:closure-defines {future-app.ios.core/DBG true}

and in future-app.ios.core namespace the initial value is set like this:

(goog-define DBG false)

from re-natal.

drapanjanas avatar drapanjanas commented on September 25, 2024

Since re-natal v0.9.0 :closure-defines should be working

from re-natal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.