mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Update transpilation example to Babel 6 and remove system.js
This commit is contained in:
@@ -4,6 +4,7 @@ var babelCore = require('babel-core');
|
||||
module.exports = function(cb, physicalPath, requestPath) {
|
||||
var originalContents = fs.readFileSync(physicalPath);
|
||||
var result = babelCore.transform(originalContents, {
|
||||
presets: ['es2015'],
|
||||
sourceMaps: 'inline',
|
||||
sourceFileName: '/sourcemapped' + requestPath
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user