- Go into VSCode
- Install typescript
npm i typescriptfor local ORnpm i -g typescriptfor global - Run either
node_modules/.bin/tsc --initfor local installation ortsc --initfor global - Open the generated file
tsconfig.jsonand pressCTRL+F - Make sure to tick the regex filter for search on the far right of the search input (third icon)
- Pase that regex
\s* \/\* .* \*\/ - Replace by "nothing"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createContext, createState, createComputed, onMount, onCleanup, splitProps, useContext, mergeProps } from "solid-js"; | |
| import { isServer, Show, Portal, Dynamic } from "solid-js/web"; | |
| const MetaContext = createContext(); | |
| const cascadingTags = ["title", "meta"]; | |
| const MetaProvider = props => { | |
| const indices = new Map(), [state, setState] = createState({}); | |
| onMount(() => { | |
| const ssrTags = document.head.querySelectorAll(`[data-sm=""]`); | |
| // `forEach` on `NodeList` is not supported in Googlebot, so use a workaround | |
| Array.prototype.forEach.call(ssrTags, (ssrTag) => ssrTag.parentNode.removeChild(ssrTag)); |