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

How can I load the remote file with Builder? #863

Open
jensenfan opened this issue Dec 30, 2019 · 1 comment
Open

How can I load the remote file with Builder? #863

jensenfan opened this issue Dec 30, 2019 · 1 comment

Comments

@jensenfan
Copy link

jensenfan commented Dec 30, 2019

Hi, I would like to bundle two remote files with systemjs, here is my attempt:

const path = require('path')
const Builder = require('systemjs-builder');
var builder = new Builder('http://xxx.com/', path.join(__dirname,'./config.js'));
builder
  .bundle(['xx.js','xx.js'], 'index.js')
  .then(function () {
    console.log('Build complete');
  })
  .catch(function (err) {
    console.log('Build error');
    console.log(err);
  });

, obviously it doesn't work. What went wrong? Thx.

@guybedford
Copy link
Member

See the note in the project readme -

This project has been deprecated as of SystemJS 2.0. It will continue to support SystemJS 0.21 legacy builds though. Instead, Rollup code splitting builds are encouraged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants