Skip to content

Commit

Permalink
fix: make config a json file
Browse files Browse the repository at this point in the history
config is static so there is no need to have it as a js file

This speeds up parsing too
  • Loading branch information
aminya committed Dec 26, 2020
1 parent f98f211 commit e14d180
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/config.js → lib/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const config = {
{
"plugins": {
"type": "object",
"properties": {}
Expand Down
4 changes: 2 additions & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { Emitter, CompositeDisposable } from 'atom'
import MinimapElement from './minimap-element'
import Minimap from './minimap'
import MinimapPluginGeneratorElement from './minimap-plugin-generator-element'
import { config } from './config'
import config from './config.json'
import { deactivateAllPlugins } from './mixins/plugin-management'

export { config } from './config'
exports.config = config
export * from './mixins/plugin-management'
export { default as Minimap } from './minimap'

Expand Down

0 comments on commit e14d180

Please sign in to comment.