Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loader.js issue #4

Open
ghost opened this issue Dec 28, 2016 · 3 comments
Open

Loader.js issue #4

ghost opened this issue Dec 28, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 28, 2016

Hi,

I'm running into the issue of the loader.js file not getting the environment suffix, leading to a 404 when requiring loader.js in the index.js file. I see this when developing locally, without building a build file - transpiling at runtime.
I manually tried adjusting this to use either loader-dev.js or loader-production.js and everything starts working great.

Is there a better to do this?

@ghost
Copy link
Author

ghost commented Dec 28, 2016

Right, I've found the issue/todo thread in the systemjs repo #1345.
Sorry, wasn't expecting it there. Will try with one of the potential solutions mentioned.

Thanks!

@ghost
Copy link
Author

ghost commented Dec 28, 2016

Hitting a brick will it seems. No real or temporary solution provided.
I'll just make a fork of the repo and hardcode to load the loader-production file for now.

@jfstephe
Copy link

jfstephe commented Feb 20, 2019

@casperlamboo did you ever get anywhere with this/#1345?

I needed this systemjs config in the packages section to get it working in a browser:

    "worker": {
      map: {
        "./loader.js": "./loader-dev.js"
      }
    }

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

No branches or pull requests

1 participant