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
Transpiler downloaded unnecessarily. #1250
Comments
I was able to follow the steps here but I wasn't seeing the transpiler downloaded when using the bundle. Are you sure you're not using other custom configuration that may be interfering with the bundle loading? |
I don't believe so, as I wrote up these steps I was executing them at the same time to make sure I didn't miss anything. I'll go through them again this evening after having forgotten what I was doing to see if I can reproduce it again. Are there any hidden settings that JSPM may be using that could cause this? I am seeing the same problem on my build server (AppVeyor), suggesting it isn't an environment issue. If I can reproduce it again I'll put up a git repo with the problem as well to further help troubleshooting. |
It appears I missed a critical step in my instructions! Add SystemJS.config({
transpiler: "plugin-typescript",
packages: {
"foo": {
"format": "esm",
...
}
...
}
...
}); |
Reproduction case repository: https://github.com/Zoltu/jspm-test |
Thanks, yes this is a SystemJS bug that it is trying to treat the |
Released in 0.19.28. |
I have an application that has been bundled with
jspm bundle
. If I look at the bundle I can see that it has transpiled all of my TypeScript code into JS and put it into the bundle.However, my application still attempts to download the typescript transpiler, even though it never actually downloads any TypeScript.
I am not sure what Aurelia is doing to trigger this but I was unable to cause it by manually calling
System.import('source/app.ts')
.Repro steps
mkdir test
cd test
npm install jspm@0.17.0-beta.14
.\node_modules\.bin\jspm init
TypeScript
and package namefoo
.\node_modules\.bin\jspm install aurelia-bootstrapper
add a
map
entry tojspm.config.js
:"app": "src/app.ts"
Change the meta
"*.js"
to"*.ts"
injspm.config.js
Create
src/app.html
with:Create
src/app.ts
with:Create
index.html
with:.\node_modules\.bin\jspm bundle src\**\*.ts
npm install node-static
.\node_modules\.bin\static .
The text was updated successfully, but these errors were encountered: