mirror of
https://github.com/JonasunderscoreJones/api-worker.git
synced 2025-10-24 02:49:17 +02:00
Initial commit (by create-cloudflare CLI)
This commit is contained in:
commit
58a42872a0
1745 changed files with 741893 additions and 0 deletions
9
node_modules/rollup-pluginutils/src/addExtension.ts
generated
vendored
Normal file
9
node_modules/rollup-pluginutils/src/addExtension.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { extname } from 'path';
|
||||
import { AddExtension } from './pluginutils';
|
||||
|
||||
const addExtension: AddExtension = function addExtension(filename, ext = '.js') {
|
||||
if (!extname(filename)) filename += ext;
|
||||
return filename;
|
||||
};
|
||||
|
||||
export { addExtension as default };
|
||||
Loading…
Add table
Add a link
Reference in a new issue