Skip to content

Commit 62d8d4c

Browse files
committed
babel for debugging
1 parent daf117e commit 62d8d4c

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

babel.config.js

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

lib/html-preview.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 { ScrollView } from 'atom-space-pen-views'
42
import fs from 'fs-plus'
53
import path from 'path'

lib/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use babel'
21
import { CompositeDisposable } from 'atom'
32
import path from 'path'
43

0 commit comments

Comments
 (0)