Skip to content

Conversation

@evanakm
Copy link

@evanakm evanakm commented Jan 19, 2021

Fix for #589

For an Angular 7.1 project, the prod build doesn't work, and it is caused by terser at the backend. Specifically the issue described here:

terser/terser#412

There are several examples in GPU.js of result.push('foo','bar','quux',) (note the trailing comma). These need to be removed. I have manually removed them in my local copy of the package (in dist/gpu-browser.js and dist/gpu-browser-core.js) and it builds. These seem to come from several of the source files in the back end. It should be an easy fix.

Copy link
Member

@robertleeplummerjr robertleeplummerjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it!

@robertleeplummerjr robertleeplummerjr merged commit c2b7536 into gpujs:develop Jan 19, 2021
@robertleeplummerjr
Copy link
Member

@evanakm evanakm deleted the remove-trailing-commas branch February 2, 2021 17:53
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