mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-25 19:17:30 +00:00
Move ES2015 example into a subpage of the NodeServicesExamples sample
This commit is contained in:
16
samples/misc/NodeServicesExamples/Views/Home/ES2015Transpilation.cshtml
Executable file
16
samples/misc/NodeServicesExamples/Views/Home/ES2015Transpilation.cshtml
Executable file
@@ -0,0 +1,16 @@
|
||||
<h1>ES2015 Transpilation</h1>
|
||||
|
||||
<p>
|
||||
This sample demonstrates a way of intercepting requests for .js files and dynamically transpiling them
|
||||
from ES2015 code to browser-compatible ES5 code using the Babel library.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
To see that it's working, open your browser's 'Debug' console and look for the log message. This is
|
||||
produced by the file <a href='/js/main.js'>/js/main.js</a>, which is transpiled from ES2015 dynamically
|
||||
when requested.
|
||||
</p>
|
||||
|
||||
@section scripts {
|
||||
<script src='/js/main.js'></script>
|
||||
}
|
||||
Reference in New Issue
Block a user