Skip to content

Commit afcd445

Browse files
author
ozelot379
committed
Fix
1 parent 45330c5 commit afcd445

5 files changed

Lines changed: 37 additions & 5 deletions

File tree

‎src/js/browserify/fs/index.mjs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function existsSync() {
2+
3+
}
4+
5+
export {existsSync};
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
async function copyFile() {
2+
}
3+
4+
async function mkdir() {
5+
}
6+
7+
async function readdir() {
8+
}
9+
10+
async function readFile() {
11+
}
12+
13+
async function rename() {
14+
}
15+
16+
async function rmdir() {
17+
}
18+
19+
async function stat() {
20+
}
21+
22+
async function writeFile() {
23+
}
24+
25+
export {copyFile, mkdir, readdir, readFile, rename, rmdir, stat, writeFile};

‎src/js/browserify/path/index.mjs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import path from "path-browserify"; // Latest version which supports `path.parse`
2+
3+
const {dirname, join, parse, sep} = path;
4+
5+
export {dirname, join, parse, sep};

‎src/js/fs_browser_null.js‎

Whitespace-only changes.

‎webpack.config.js‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,8 @@ module.exports = {
4343
},
4444
resolve: {
4545
alias: {
46-
fs: __dirname + "/src/js/fs_browser_null.js",
47-
"fs-extra": __dirname + "/src/js/fs_browser_null.js",
48-
"graceful-fs": __dirname + "/src/js/fs_browser_null.js",
49-
path: "path-browserify", // Latest version which supports `path.parse`
50-
readdirp: __dirname + "/src/js/fs_browser_null.js"
46+
fs: __dirname + "/src/js/browserify/fs",
47+
path: __dirname + "/src/js/browserify/path"
5148
}
5249
},
5350
plugins: [

0 commit comments

Comments
 (0)