Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
14
node_modules/@trapezedev/project/dist/read-src.js
generated
vendored
Normal file
14
node_modules/@trapezedev/project/dist/read-src.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.readSource = void 0;
|
||||
const utils_fs_1 = require("@ionic/utils-fs");
|
||||
// Supporting reading files from either a path or URL
|
||||
async function readSource(pathOrUrl) {
|
||||
if (/^(https?:\/\/)/.test(pathOrUrl)) {
|
||||
const res = await fetch(pathOrUrl);
|
||||
return res.text();
|
||||
}
|
||||
return (0, utils_fs_1.readFile)(pathOrUrl);
|
||||
}
|
||||
exports.readSource = readSource;
|
||||
//# sourceMappingURL=read-src.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue