forked from jsnbuchanan/crowd-funder-for-time-pwa
18 lines
435 B
JavaScript
18 lines
435 B
JavaScript
// Minimal fs module implementation for browser
|
|
const fs = {
|
|
readFileSync: () => {
|
|
throw new Error('fs.readFileSync is not supported in browser');
|
|
},
|
|
writeFileSync: () => {
|
|
throw new Error('fs.writeFileSync is not supported in browser');
|
|
},
|
|
existsSync: () => false,
|
|
mkdirSync: () => {},
|
|
readdirSync: () => [],
|
|
statSync: () => ({
|
|
isDirectory: () => false,
|
|
isFile: () => false
|
|
})
|
|
};
|
|
|
|
export default fs;
|