Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: add externs for external JS libs to prevent name been munged - #1074

Merged
tiensonqin merged 1 commit into
logseq:masterfrom
kailes:master
Jan 7, 2021
Merged

fix: add externs for external JS libs to prevent name been munged#1074
tiensonqin merged 1 commit into
logseq:masterfrom
kailes:master

Conversation

@kailes

@kailes kailes commented Jan 7, 2021

Copy link
Copy Markdown
Contributor

Add externs for external JS libs to prevent name been munged when building with release.

Problem

The issue happens when calling module utils.js from cljs :

(utils/openDirectory #js {:recursive true} (fn [] ))

But this is a external JS library, which has been optimized by Google closure compiler in release mode into something like follows:

Screen Shot 2021-01-05 at 21 30 56

Which cause weird issue mentioned in c611a7a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants