Cosmetic
This commit is contained in:
parent
f538891a25
commit
fb5f569342
|
@ -1,5 +1,3 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
require("@syndicate-lang/syntax/lib/index"); // patches babel -- load before any of babel loads!!
|
require("@syndicate-lang/syntax/lib/index"); // patches babel -- load before any of babel loads!!
|
||||||
const BabelTransform = require("@babel/core/lib/transform");
|
const BabelTransform = require("@babel/core/lib/transform");
|
||||||
|
|
||||||
|
@ -19,7 +17,7 @@ spawn named 'compiler' {
|
||||||
during Inbound(CompilationOptions($options)) {
|
during Inbound(CompilationOptions($options)) {
|
||||||
during Inbound(Observe(WorkItem(worker, Compilation($filename, $input), _))) {
|
during Inbound(Observe(WorkItem(worker, Compilation($filename, $input), _))) {
|
||||||
const finalOptions = Object.assign({filename: '/' + filename}, options.toJS());
|
const finalOptions = Object.assign({filename: '/' + filename}, options.toJS());
|
||||||
console.log(worker, 'compiling', filename, '...');
|
console.log(worker, 'compiling', filename);
|
||||||
BabelTransform.transform(input, finalOptions, Dataspace.wrapExternal((err, output) => {
|
BabelTransform.transform(input, finalOptions, Dataspace.wrapExternal((err, output) => {
|
||||||
react assert Outbound(WorkItem(worker,
|
react assert Outbound(WorkItem(worker,
|
||||||
Compilation(filename, input),
|
Compilation(filename, input),
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
"use strict";
|
|
||||||
|
|
||||||
import { Bytes, spawnWorker } from "@syndicate-lang/core";
|
import { Bytes, spawnWorker } from "@syndicate-lang/core";
|
||||||
const Http = activate require("@syndicate-lang/driver-http-node");
|
const Http = activate require("@syndicate-lang/driver-http-node");
|
||||||
const S = activate require("@syndicate-lang/driver-streams-node");
|
const S = activate require("@syndicate-lang/driver-streams-node");
|
||||||
|
|
Loading…
Reference in New Issue