Skip to content

Conversation

@ceciliaavila
Copy link
Collaborator

Fixes #4907

Description

This PR fixes the browser build for adaptive-expressions by disabling the tsup minification and using terser as a minifier in a separated build step.
It also adds a replacement for the assert module, required by the ANTLR parser.

Specific Changes

  • Added build:browser:min script to use terser as the adaptive-expressions minifier.
  • Added assert alias in tsup.config.ts.
  • Updated tsup.config.ts to allow overriding the minify option.

Testing

These images show the thee browser-compiled packages working after the changes.
image

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.

adaptive-expression does not work in the browser anymore

2 participants