mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Add ES2015 runtime transpilation sample
This commit is contained in:
6
samples/misc/ES2015Transpilation/transpilation.js
Normal file
6
samples/misc/ES2015Transpilation/transpilation.js
Normal file
@@ -0,0 +1,6 @@
|
||||
var babelCore = require('babel-core');
|
||||
|
||||
module.exports = function(cb, fileContents) {
|
||||
var result = babelCore.transform(fileContents, {});
|
||||
cb(null, result.code);
|
||||
}
|
||||
Reference in New Issue
Block a user