- Go into VSCode
- Install typescript
npm i typescript
for local ORnpm i -g typescript
for global - Run either
node_modules/.bin/tsc --init
for local installation ortsc --init
for global - Open the generated file
tsconfig.json
and 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 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)); |