Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit cd0f049

Browse files
committed
Defer loading of path
This no longer needs to load on package load, defer to loading in loadDeps().
1 parent f41bfa0 commit cd0f049

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/main.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,25 @@
22

33
// eslint-disable-next-line import/no-extraneous-dependencies, import/extensions
44
import { CompositeDisposable } from 'atom';
5-
import * as path from 'path';
65

76
// Dependencies
8-
let helpers;
97
let fs;
8+
let path;
9+
let helpers;
1010

1111
// Internal Variables
1212
let bundledCsslintPath;
1313

1414
const loadDeps = () => {
15-
if (!helpers) {
16-
helpers = require('atom-linter');
17-
}
1815
if (!fs) {
1916
fs = require('fs-plus');
2017
}
18+
if (!path) {
19+
path = require('path');
20+
}
21+
if (!helpers) {
22+
helpers = require('atom-linter');
23+
}
2124
};
2225

2326
export default {

0 commit comments

Comments
 (0)