If you try to build and submit a new extension to the marketplace it will be rejected with the message "Extension failed Virus check. Please submit a valid extension.".
With the current code yarn audit returns:
27 vulnerabilities found - Packages audited: 31684
Severity: 8 Low | 18 High | 1 Critical
yarn upgrade is not so straightforward because react-scripts-ts was discontinued and the latest version still leaves vulnerabilities.
I followed this guide to migrate from react-scripts-ts to react-scripts.
The new versions changed the way the build assets are createed, splitting them in a way that makes it hard to rebuild in _getHtmlForWebview. I followed this workaround to disable the code splitting, fixing the <script /> link.
If you try to build and submit a new extension to the marketplace it will be rejected with the message "Extension failed Virus check. Please submit a valid extension.".
With the current code
yarn audit
returns:yarn upgrade
is not so straightforward becausereact-scripts-ts
was discontinued and the latest version still leaves vulnerabilities.I followed this guide to migrate from
react-scripts-ts
toreact-scripts
.The new versions changed the way the build assets are createed, splitting them in a way that makes it hard to rebuild in
_getHtmlForWebview
. I followed this workaround to disable the code splitting, fixing the<script />
link.