Skip to content

Remove trailing commas#665

Merged
robertleeplummerjr merged 1 commit into
gpujs:developfrom
evanakm:remove-trailing-commas
Jan 19, 2021
Merged

Remove trailing commas#665
robertleeplummerjr merged 1 commit into
gpujs:developfrom
evanakm:remove-trailing-commas

Conversation

@evanakm

@evanakm evanakm commented Jan 19, 2021

Copy link
Copy Markdown

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.

@robertleeplummerjr robertleeplummerjr left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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