Skip to content

Commit 85c82d5

Browse files
committed
data.Store: load() => ignore the node.js env for webpack #7807
1 parent a2fa0a6 commit 85c82d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data/Store.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ class Store extends Base {
545545

546546
// Fallback for non-browser based envs like nodejs
547547
if (globalThis.process?.release) {
548-
const { readFile } = await import('fs/promises');
548+
const { readFile } = await import(/* webpackIgnore: true */ 'fs/promises');
549549
const content = await readFile(opts.url, 'utf-8');
550550
data = {json: JSON.parse(content)};
551551
} else {

0 commit comments

Comments
 (0)