npm install
For no module script:
npm run bundle:iife
npm install
For no module script:
npm run bundle:iife
<script context="module"> | |
import { get, readable } from 'svelte/store' | |
import { createClient, operationStore } from '@urql/svelte' | |
import { browser, dev } from '$app/env' | |
/** | |
* @type {import('@sveltejs/kit').Load} | |
*/ |
<script context="module"> | |
import { get, readable } from 'svelte/store' | |
import { createClient, operationStore } from '@urql/svelte' | |
import { browser, dev } from '$app/env' | |
/** | |
* @type {import('@sveltejs/kit').Load} | |
*/ |
import * as ts from 'typescript' | |
import * as fs from 'fs' | |
import * as path from 'path' | |
const { config = {} } = ts.readConfigFile(path.resolve(process.cwd(), 'tsconfig.json'), (file) => | |
fs.readFileSync(file, 'utf-8'), | |
) | |
generateDocumentation([path.resolve(__dirname, 'index.ts')], config) |
import { create } from 'https://cdn.skypack.dev/twind' | |
const { tw: TW } = create({ preflight: false }) | |
const tw = (...tokens) => { | |
let styles | |
TW(({ css }) => { | |
styles = css(...tokens) | |
styles._ = undefined | |
return '' |