Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit ebdeaf3

Browse files
committed
use babel plugin
1 parent e289294 commit ebdeaf3

18 files changed

+21
-36
lines changed

babel.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const presets = [['@babel/preset-env', { targets: { electron: 5 } }]]
2+
3+
const plugins = []
4+
5+
if (process.env.BABEL_ENV === 'development') {
6+
plugins.push('@babel/plugin-transform-modules-commonjs')
7+
}
8+
9+
module.exports = {
10+
presets,
11+
plugins,
12+
exclude: 'node_modules/**',
13+
sourceMaps: 'inline',
14+
}

lib/add-dialog.coffee

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use babel'
21
import path from 'path'
32
import fs from 'fs-plus'
43
import Dialog from './dialog'

lib/add-projects-view.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
export default class AddProjectView {
42
constructor () {
53
this.element = document.createElement('div')

lib/copy-dialog.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import path from 'path'
42
import fs from 'fs-plus'
53
import Dialog from './dialog'

lib/default-file-icons.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import path from 'path'
42
import fs from 'fs-plus'
53

lib/dialog.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import {TextEditor, CompositeDisposable, Disposable, Emitter, Range, Point} from'atom'
42
import path from 'path'
53
import {getFullExtension} from "./helpers"

lib/directory-view.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import {CompositeDisposable} from 'atom'
42
import getIconServices from './get-icon-services'
53
import Directory from './directory'

lib/directory.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import path from 'path'
42
import _ from 'underscore-plus'
53
import {CompositeDisposable, Emitter} from 'atom'

lib/file-view.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import {CompositeDisposable} from 'atom'
42
import getIconServices from './get-icon-services'
53

lib/file.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import fs from 'fs-plus'
42
import {CompositeDisposable, Emitter} from 'atom'
53
import {repoForPath} from './helpers'

0 commit comments

Comments
 (0)