Skip to content

Commit 34b3e53

Browse files
committed
Fix source map file name
1 parent 7afef30 commit 34b3e53

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "requirejs-babel",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"authors": [
55
"Michael <[email protected]>"
66
],

es6.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ define(['babel'], function(babel) {
3131
fetchText(url, function (text) {
3232
var code = babel.transform(text, {
3333
modules: 'amd',
34-
sourceMap: 'inline'
34+
sourceMap: config.isBuild ? false :'inline',
35+
sourceFileName: name
3536
}).code;
3637

3738
if (config.isBuild) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "requirejs-babel",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "An AMD loader plugin for Babel",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)