Skip to content

Commit 4187ce8

Browse files
committed
feat: Adapting to current n4js-node runtime
1 parent 477c862 commit 4187ce8

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ module.exports = ({types: t}) => {
104104
let consequent = fnExpr.arguments[0].consequent;
105105
consequent.callee.object.arguments = [t.stringLiteral("n4js-node")];
106106
//consequent.arguments[0] = t.nullLiteral();
107+
consequent.callee.property = t.identifier("staticSystem");
107108
fnExpr.arguments = [consequent.callee];
108109

109110
let sysRegExpr = fnExpr.callee.body.body[0].expression;

tests/data/dummy/no_deps_fixture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
execute: function () {}
1313
};
1414
}, module, 'babel-plugin-transform-n4js-systemjs-commonjs/tests/data/dummy/no_deps');
15-
})(require('n4js-node').System);
15+
})(require('n4js-node').staticSystem);
1616
//--# sourceMappingURL=dep.map--

tests/data/dummy/regdyn_fixture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
module.exports = {};
1010
}, module, "babel-plugin-transform-n4js-systemjs-commonjs/tests/data/dummy/regdyn");
11-
})(require("n4js-node").System);
11+
})(require("n4js-node").staticSystem);

tests/data/dummy/with_deps_fixture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
}
1414
};
1515
}, module, 'babel-plugin-transform-n4js-systemjs-commonjs/tests/data/dummy/with_deps');
16-
})(require('n4js-node').System);
16+
})(require('n4js-node').staticSystem);
1717
//--# sourceMappingURL=with_deps.map--

0 commit comments

Comments
 (0)