   ([source opts compiler-env]
      (env/with-compiler-env compiler-env
        (let [compiler-stats (:compiler-stats opts)
-             all-opts (add-implicit-options opts)
-             emit-constants (or (and (= (:optimizations opts) :advanced)
-                                     (not (false? (:optimize-constants opts))))
-                                (:optimize-constants opts))]
+             all-opts (add-implicit-options opts)]
          (check-output-to opts)
          (check-output-dir opts)
          (check-source-map opts)

                                        [(-compile (io/resource "cljs/nodejs.cljs") all-opts)])))
                                  (when (= :nodejs (:target all-opts))
                                    [(-compile (io/resource "cljs/nodejscli.cljs") all-opts)]))))
                 _ (when emit-constants
                     (comp/emit-constants-table-to-file
                       (::ana/constant-table @env/*compiler*)
                       (str (util/output-directory all-opts) "/constants_table.js")))

          :output-dir output-dir
          :ups-libs libs
          :ups-foreign-libs foreign-libs
          :ups-externs externs
          :emit-constants emit-constants)
        (update-in [:preamble] #(into (or % []) ["cljs/imul.js"])))

      (:target opts)
