Inqnuam / esbuild-plugin-umd-wrapper

UMD wrapper for esbuild
19 stars 2 forks source link

Question: semicolons between statements #2

Closed vanodevium closed 4 months ago

vanodevium commented 4 months ago

There It would be useful to be able to put a semicolon between expressions so that the editor doesn't highlight it as a possible error.

vanodevium commented 4 months ago

Clarification: It's not possible error, it's valid error.

Inqnuam commented 4 months ago

Thanks for your PR, Could you please provide a minimal reproductible example

vanodevium commented 4 months ago

@Inqnuam

Of course. There is library where this problem I see.

Let me show you the main problem: please open https://unpkg.com/sprae@10.9.3/dist/sprae.umd.js and find two lines:

In both cases there is problem with sequence )if

vanodevium commented 4 months ago

@Inqnuam

Clarification: while I was looking for a solution, I realized that the first line can be fixed from the side of the library, but the second - definitely only from the side of the plugin.

vanodevium commented 4 months ago

@Inqnuam

Please update the version in the npm registry, thanks!

Inqnuam commented 4 months ago

should work now