Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
Work around for advanced build bug.
Browse files Browse the repository at this point in the history
Constant folding isn't compatible with output of advanced compilation.
  • Loading branch information
olivergeorge committed Jun 3, 2019
1 parent 6d4d557 commit 66c6dfc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

deps:
rm -fr node_modules
yarn
patch node_modules/metro/src/JSTransformer/worker.js ./worker.patch

release-android:
if [ ! -f android/app/aluminium-release-key.keystore ] ; then exit 1; fi;
lein do clean, with-profile advanced cljsbuild once android
cd android && ./gradlew assembleRelease
18 changes: 18 additions & 0 deletions worker.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- worker.js 2018-11-21 14:46:01.271844624 -0700
+++ worker.js 2018-11-21 14:45:52.517615272 -0700
@@ -199,10 +199,10 @@
plugins.push([inlineRequiresPlugin, opts]);
}

- if (!options.dev) {
- plugins.push([constantFoldingPlugin, opts]);
- plugins.push([inlinePlugin, opts]);
- }
+ // if (!options.dev) {
+ // plugins.push([constantFoldingPlugin, opts]);
+ plugins.push([inlinePlugin, opts]);
+ // }

var _transformFromAstSync = transformFromAstSync(ast, "", {
ast: true,
babelrc: false,

0 comments on commit 66c6dfc

Please sign in to comment.