Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Commit c72965b

Browse files
committed
fix runtime path for latest systemjs 0.20
1 parent b59b379 commit c72965b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

plugin-babel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ exports.translate = function(load, traceOpts) {
191191
else if (m.substr(0, 14) == 'babel-runtime/') {
192192
if (!babelRuntimePath) {
193193
babelRuntimePath = System.decanonicalize('babel-runtime/', module.id);
194+
if (babelRuntimePath[babelRuntimePath.length - 1] !== '/')
195+
babelRuntimePath += '/';
194196
if (babelRuntimePath.substr(babelRuntimePath.length - 3, 3) == '.js')
195197
babelRuntimePath = babelRuntimePath.substr(0, babelRuntimePath.length - 3);
196198
if (loader.getCanonicalName)

0 commit comments

Comments
 (0)