MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / get_extname

Function get_extname

packages/main/src/vite/vite.ts:36–42  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

34}
35
36function get_extname(filename: string): string {
37 filename = path.extname(filename)
38 let idx = filename.indexOf('?')
39 if (idx === -1)
40 idx = filename.length
41 return filename.slice(1, idx)
42}
43
44// This export is used for configuration.
45export const devtoolsPlugin = (_options: DevtoolsPluginOptions = {}): vite.PluginOption => {

Callers 1

transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…