// @ts-nocheck import { compile } from 'svelte/compiler'; import { relative, isAbsolute, join, dirname } from 'path'; import { promises as fs } from 'fs'; const convertMessage = ({ message, start, end, filename, frame }) => ({ text: message, location: start && end && { file: filename, line: start.line, column: start.column, length: start.line === end.line ? end.column - start.column : 0, lineText: frame, }, }); const handleLoad = async (args, generate) => { const { path } = args; const source = await fs.readFile(path, 'utf8'); const filename = relative(process.cwd(), path); try { let compileOptions = { css: false, generate, hydratable: true }; let { js, warnings } = compile(source, { ...compileOptions, filename }); let contents = js.code + `\n//# sourceMappingURL=` + js.map.toUrl(); return { loader: 'js', contents, resolveDir: dirname(path), warnings: warnings.map((w) => convertMessage(w)) }; } catch (e) { return { errors: [convertMessage(e)] }; } }; export default function sveltePlugin() { return { name: 'svelte-esbuild', setup(build) { build.onResolve({ filter: /\.svelte$/ }, (args) => { let path = args.path.replace(/\.(?:client|server)/, ''); path = isAbsolute(path) ? path : join(args.resolveDir, path); if (/\.client\.svelte$/.test(args.path)) { return { path, namespace: 'svelte:client', }; } if (/\.server\.svelte$/.test(args.path)) { return { path, namespace: 'svelte:server', }; } }); build.onLoad({ filter: /.*/, namespace: 'svelte:client' }, (args) => handleLoad(args, 'dom')); build.onLoad({ filter: /.*/, namespace: 'svelte:server' }, (args) => handleLoad(args, 'ssr')); }, }; } 5614c8192'>dependabot/go_modules/k8s-io-95614c8192 Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/plugin/header (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-02-06build(deps): bump github.com/antonmedv/expr from 1.10.5 to 1.12.0 (#5901)Gravatar dependabot[bot] 2-3/+3
2023-02-06build(deps): bump google.golang.org/api from 0.108.0 to 0.109.0 (#5904)Gravatar dependabot[bot] 2-3/+3
2023-02-06build(deps): bump github.com/aws/aws-sdk-go from 1.44.189 to 1.44.194 (#5902)Gravatar dependabot[bot] 2-3/+3
2023-02-06build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.46.1 to 1.47.0 (#5903)Gravatar dependabot[bot] 2-7/+9
2023-02-06build(deps): bump google.golang.org/grpc from 1.52.0 to 1.52.3 (#5905)Gravatar dependabot[bot] 2-3/+3
2023-02-06build(deps): bump aquasecurity/trivy-action from 0.8.0 to 0.9.0 (#5900)Gravatar dependabot[bot] 1-1/+1
2023-01-30plugin/forward: fix broken tap plugins when dnstap plugins specified (#5890)Gravatar Gerhard Tan 5-13/+60
2023-01-30build(deps): bump k8s.io/klog/v2 from 2.80.1 to 2.90.0 (#5887)Gravatar dependabot[bot] 2-3/+3
2023-01-30build(deps): bump github.com/Azure/azure-sdk-for-go (#5885)Gravatar dependabot[bot] 2-3/+3
2023-01-30build(deps): bump github/codeql-action from 2.1.39 to 2.2.1 (#5884)Gravatar dependabot[bot] 3-5/+5
2023-01-30build(deps): bump golangci/golangci-lint-action from 3.3.1 to 3.4.0 (#5883)Gravatar dependabot[bot] 1-1/+1
2023-01-30build(deps): bump github.com/aws/aws-sdk-go from 1.44.180 to 1.44.189 (#5886)Gravatar dependabot[bot] 2-3/+3
2023-01-30build(deps): bump github.com/antonmedv/expr from 1.10.3 to 1.10.5 (#5888)Gravatar dependabot[bot] 2-3/+3
2023-01-30build(deps): bump k8s.io/client-go from 0.26.0 to 0.26.1 (#5889)Gravatar dependabot[bot] 2-9/+9
2023-01-27update notes with recent merges (#5880)Gravatar Chris O'Haver 1-1/+6
2023-01-27Add weighted-round-robin policy to loadbalance plugin (#5662)Gravatar Gabor Dozsa 8-36/+975
2023-01-27plugin/cache: add a new keepttl option (#5879)Gravatar Arthur Outhenin-Chalandre 6-1/+87
2023-01-23build(deps): bump github.com/Azure/go-autorest/autorest/azure/auth (#5876)Gravatar dependabot[bot] 2-3/+3
2023-01-23Fix links in main README (#5878)Gravatar Chris O'Haver 1-2/+2
2023-01-23build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.46.0 to 1.46.1 (#5873)Gravatar dependabot[bot] 2-3/+3
2023-01-23build(deps): bump github.com/antonmedv/expr from 1.9.0 to 1.10.3 (#5872)Gravatar dependabot[bot] 2-18/+3
2023-01-23build(deps): bump google.golang.org/api from 0.107.0 to 0.108.0 (#5875)Gravatar dependabot[bot] 2-3/+3
2023-01-23build(deps): bump github/codeql-action from 2.1.38 to 2.1.39 (#5871)Gravatar dependabot[bot] 3-5/+5
2023-01-23build(deps): bump go.etcd.io/etcd/client/v3 from 3.5.6 to 3.5.7 (#5874)Gravatar dependabot[bot] 2-103/+9
2023-01-23Move flags to coremain (#5865)Gravatar David Hadas 2-6/+3
2023-01-16build(deps): bump github.com/aws/aws-sdk-go from 1.44.175 to 1.44.180 (#5856)Gravatar dependabot[bot] 2-3/+3
2023-01-16build(deps): bump github/codeql-action from 2.1.37 to 2.1.38 (#5855)Gravatar dependabot[bot] 3-5/+5
2023-01-16build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.45.1 to 1.46.0 (#5857)Gravatar dependabot[bot] 2-3/+3
2023-01-16build(deps): bump google.golang.org/api from 0.106.0 to 0.107.0 (#5859)Gravatar dependabot[bot] 2-3/+3
2023-01-16build(deps): bump github.com/Azure/azure-sdk-for-go (#5858)Gravatar dependabot[bot] 2-3/+3
2023-01-16build(deps): bump google.golang.org/grpc from 1.51.0 to 1.52.0 (#5860)Gravatar dependabot[bot] 2-3/+3
2023-01-11plugin/etcd: update documentation (#5847)Gravatar Vico Chu 1-1/+1
2023-01-09Bump version to 1.10.1 (#5845)Gravatar Yong Tang 1-1/+1