MCPcopy Index your code
hub / github.com/rollup/plugins / getLastPathFragment

Function getLastPathFragment

packages/node-resolve/test/test.mjs:21–21  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

19const failOnWarn = (warning) =>
20 expect.unreachable(`No warnings were expected, got:\n${warning.code}\n${warning.message}`);
21const getLastPathFragment = (path) => path && path.split(/[\\/]/).slice(-1)[0];
22test('exposes plugin version', () => {
23 const plugin = nodeResolve();
24 expect(plugin.version).toMatch(/^\d+\.\d+\.\d+/);

Callers 1

resolveIdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected