Skip to content

Commit 4e6b946

Browse files
committed
refactor: lazy load lint globals
1 parent 1ab181c commit 4e6b946

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

rstack.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// Rstack configuration guide: https://rstack.rs/config
2-
import globals from 'globals';
32
import { define } from 'rstack';
43

54
define.lint(async () => {
6-
const { js, ts } = await import('rstack/lint');
5+
const [{ default: globals }, { js, ts }] = await Promise.all([
6+
import('globals'),
7+
import('rstack/lint'),
8+
]);
79
return [
810
js.configs.recommended,
911
ts.configs.recommended,

0 commit comments

Comments
 (0)