Skip to content

Commit

Permalink
Update es6-module-transpiler to 0.6.0, source maps
Browse files Browse the repository at this point in the history
This now outputs source maps!
  • Loading branch information
ericf committed Jul 28, 2014
1 parent 4928f56 commit 72985d1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
10 changes: 4 additions & 6 deletions index.js
Expand Up @@ -203,10 +203,9 @@ CompileModules.prototype.compileAndCacheModules = function (modulePaths, srcDir,

cacheEntry.dir = cacheDir;

// TODO: Add source map to `outputFiles`.
cacheEntry.outputFiles = [
relPath /*,
relPath + '.map'*/
relPath,
relPath + '.map'
];

this.copyFromCache(cacheEntry, outputPath);
Expand All @@ -221,10 +220,9 @@ CompileModules.prototype.compileAndCacheModules = function (modulePaths, srcDir,
hash: outputHash.join(','),
dir : cacheDir,

// TODO: Add source map to `outputFiles`.
outputFiles: [
outputFile /*,
outputFile + '.map'*/
outputFile,
outputFile + '.map'
]
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"broccoli-kitchen-sink-helpers": "^0.2.4",
"broccoli-writer": "^0.1.1",
"es6-module-transpiler": "^0.5.1",
"es6-module-transpiler": "^0.6.0",
"mkdirp": "^0.5.0",
"quick-temp": "^0.1.2",
"symlink-or-copy": "^1.0.0",
Expand Down
4 changes: 3 additions & 1 deletion tests/fixtures/commonjs/expected/foo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion tests/fixtures/commonjs/expected/foo/bar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 72985d1

Please sign in to comment.