We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90de50c commit da33e52Copy full SHA for da33e52
packages/kit/src/exports/vite/build/utils.js
@@ -1,7 +1,6 @@
1
import fs from 'node:fs';
2
import path from 'node:path';
3
import { normalizePath } from 'vite';
4
-import { ENDPOINT_METHODS } from '../../../constants';
5
6
/**
7
* Adds transitive JS and CSS dependencies to the js and css inputs.
@@ -91,12 +90,3 @@ export function resolve_symlinks(manifest, file) {
91
90
export function assets_base(config) {
92
return (config.paths.assets || config.paths.base || '.') + '/';
93
}
94
-
95
-// If we'd written this in TypeScript, it could be easy...
96
-/**
97
- * @param {string} str
98
- * @returns {str is import('types').HttpMethod}
99
- */
100
-export function is_http_method(str) {
101
- return ENDPOINT_METHODS.has(str);
102
-}
0 commit comments