Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
let presets = ["@babel/preset-react", "@babel/preset-env"];

let plugins = [
"@babel/plugin-syntax-dynamic-import",
'@babel/plugin-proposal-class-properties'
// "transform-react-remove-prop-types",
// '@babel/plugin-proposal-optional-chaining',
];

if (process.env.BABEL_ENV === "development") {
plugins.push("@babel/plugin-transform-modules-commonjs")
}

module.exports = {
presets: presets,
plugins: plugins,
exclude: "node_modules/**",
// runtimeHelpers: true,
}
2 changes: 2 additions & 0 deletions dist/julia-client.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/julia-client.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/connection/process/basic.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import tcp from './tcp'
import * as pty from 'node-pty-prebuilt-multiarch'
Expand Down
2 changes: 1 addition & 1 deletion lib/connection/process/remote.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import tcp from './tcp'
import net from 'net'
Expand Down
2 changes: 1 addition & 1 deletion lib/misc/blocks.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'

// TODO: docstrings

import { forLines } from './scopes'
Expand Down
2 changes: 1 addition & 1 deletion lib/misc/cells.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import { get as weaveGet,
moveNext as weaveMoveNext,
Expand Down
2 changes: 1 addition & 1 deletion lib/misc/colors.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


export function getColors(selectors) {
let grammar = atom.grammars.grammarForScopeName("source.julia")
Expand Down
2 changes: 1 addition & 1 deletion lib/misc/weave.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import 'atom'

Expand Down
2 changes: 1 addition & 1 deletion lib/package/settings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


let validSchemes = require('../package/config')
let invalidSchemes = [] // Keeps invalid config schemes to be notified to users
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime/console.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import { client } from '../connection'
import { customEnv } from '../connection/process/basic'
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime/debugger.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'

/** @jsx etch.dom */

import { CompositeDisposable } from 'atom'
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime/debuginfo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import { client } from '../connection'

Expand Down
2 changes: 1 addition & 1 deletion lib/runtime/linter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import { CompositeDisposable } from 'atom'
import { client } from '../connection'
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime/outline.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import { CompositeDisposable, Disposable, TextEditor } from 'atom'
import { throttle } from 'underscore-plus'
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime/packages.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import { client } from '../connection'
import { selector } from '../ui'
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime/plots.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import { client } from '../connection'
import { views } from '../ui'
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime/profiler.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import { client } from '../connection'
import { CompositeDisposable } from 'atom'
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime/urihandler.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"use babel"


import { client } from '../connection'
import { docpane, views } from '../ui'
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/cellhighlighter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import { getRange } from '../misc/cells'
import { CompositeDisposable } from 'atom'
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/docs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import { CompositeDisposable } from 'atom'
import { client } from '../connection'
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/focusutils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


import {TextEditor, CompositeDisposable} from 'atom'

Expand Down
2 changes: 1 addition & 1 deletion lib/ui/layout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'


const repl = () => {
return require('../runtime').console
Expand Down
Loading