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 { LitElement, html, TemplateResult } from 'lit' | |
import { property } from 'lit/decorators/property.js' | |
import { state } from 'lit/decorators/state.js' | |
import { assert } from '@esm-bundle/chai' | |
import { ContextProvider, createContext } from '../context.js' | |
import { ContextConsumer } from '../lib/controllers/context-consumer.js' |
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 { html } from 'lit' | |
import { unsafeSVG } from 'lit/directives/unsafe-svg.js' | |
import { dirname } from 'path' | |
import { readFile } from 'fs/promises' | |
import { Plugin } from 'vite' | |
import { URL } from 'url' // in Browser, the URL in native accessible on window | |
export const svgLoader = (): Plugin => { | |
const svgRegex = /\.svg(\?(raw|url|component))?$/ |
locale: en-CA title: Converting a dynamic site into static HTML documents canonical: https://renoirboulanger.com/blog/2015/05/converting-dynamic-site-static-copy/ date: '2015-05-20T13:44:11-04:00' preamble: disable: true text: ' ' coverImage: src: ~/assets/content/blog/2015/05/webat25-org-screen-capture.png
Keep track of strings or numbers, and tell me whenever they are no longer needed.
Make something we want to keep track of to be self-purging. i.e. keep track of keys, by telling you've used them, if after a time isn't used, fill a list
Based on debounce-with-map.
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
node_modules/ | |
dist/ | |
package-lock.json |