-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Output ES6 compatible JavaScript to support older browsers #3607
Conversation
Great job! This is a very sustainable solution because it guarantees that any modern JS we use will always be compiled into old-school JS. |
The only problem is the build server who doesn't like it
Any ideas? |
@henon it appears the |
Thanks, you rock! |
@henon This PR has caused a node dependancy. |
@mikes-gh that would be truly odd. Any supporting facts? |
@FalxDrako Can you explain please. AFAIKS The package you added depends on node? Without it the build fails. |
Supporting fact Error The build task could not find node.exe which is required to run the TypeScript compiler. Please install Node and ensure that the system path contains its location. [C:\Users\xxxx\Source\Repos\GarderobenLast\src\MudBlazor\MudBlazor.csproj] MudBlazor.Docs C:\Users\xxxx.nuget\packages\microsoft.typescript.msbuild\4.5.3\tools\Microsoft.TypeScript.targets 315 |
…udBlazor#3607)" This reverts commit 6a5753e.
@mikes-gh thanks for the log, it's clear now what is happening. If you build the project manually from within Visual Studio, the system uses the node.exe binary in shipped with VS, eg. I remember a time in which tsc was shipped as a binary without a node dependency. I guess I am too old. To sum it up, node is a hard dependency and I stand corrected. |
Also not everyone is using windows :-) |
Description
Fixes #3537
The project's build system has been modified to output ES6 compatible JavaScript, thus producing a reliable solution for the issue detailed in #3537 as well as defending against future possible issues stemming from usage of bleeding edge JavaScript features.
This allows you JavaScript Wizards to continue writing code the way you like it (with modern idioms) while offering an extra layer of protection against browsers with incomplete or absent coverage of your favorite features.
How Has This Been Tested?
Types of changes
Checklist:
dev
).