direct discussion about administrative action away from the main channel and into #reddit-diabetes-ops
to minimise disruption. our -ops
channel is the place where users should come to ask for our help. examples:
- any sort of operator request or discussion of channel administration in the main channel
- PMs asking why a ban was set
- reports of harassment (unless the user is confiding in you)
- any request for operator action
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 { resolve } from 'path' | |
import { GatsbyCreatePages } from './types' | |
const createPages: GatsbyCreatePages = async ({ | |
graphql, | |
boundActionCreators, | |
}) => { | |
const { createPage } = boundActionCreators | |
const allMarkdown = await graphql(` |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'
instead ofconst foo = require('foo')
to import the package. You also need to put"type": "module"
in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)
from CommonJS instead ofrequire(…)
. - Stay on the existing version of the package until you can move to ESM.
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
//@ts-check | |
//#region dom.js | |
/** @typedef {boolean|number|bigint|string} Scalar */ | |
/** @param {string} content */ | |
function appendStyleSheet (content) | |
{ | |
const style = document.createElement ("style") |