Skip to content

Commit

Permalink
fix: Disable esbuild minification of identifiers (#1515)
Browse files Browse the repository at this point in the history
The resulting mangrove.js conflicts with certain javascript frameworks.

Minification of whitespace and syntax is kept.
  • Loading branch information
dontrolle authored Sep 19, 2023
1 parent 4f5a8bf commit 31c4ecc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Next version

- fix: Disable esbuild minification of identifiers

# 1.4.22

- fix: do not call getLastBlock if reliable provider does not listen to events
Expand Down
4 changes: 3 additions & 1 deletion esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ const shimOnResolvePlugin = {
build({
entryPoints: ["./src/index.ts"],
bundle: true,
minify: true,
minifyWhitespace: true,
minifySyntax: true,
// minifyIdentifiers: true, // Disabled: Breaks certain imports with next.js
outfile: BrowserBuildPath,
platform: "browser",
format: "iife",
Expand Down

0 comments on commit 31c4ecc

Please sign in to comment.