babel / babel-brunch

Brunch plugin for Babel
ISC License
69 stars 38 forks source link

Source maps are mapped to transpiled source #56

Closed millerized closed 7 years ago

millerized commented 7 years ago

I've noticed I can't find a way to use the original source instead of the source compiled by babel.

Is this perhaps a limitation of babel-brunch right now or am I missing something in my config somewhere?

Using latest versions of brunch, babel, and babel-brunch.

Abbreviated config:

presets: ['latest']
plugins: [
    'transform-class-properties'
    'transform-object-rest-spread'
    'transform-runtime'
]

Abbreviated package.json:

    "babel-brunch": "^6.1.1",
    "babel-cli": "^6.24.0",
    "babel-plugin-transform-class-properties": "^6.23.0",
    "babel-plugin-transform-object-rest-spread": "^6.23.0",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-polyfill": "^6.23.0",
    "brunch": "^2.10.9",
millerized commented 7 years ago

I am not sure that this is related, but I also have to use 'inline' for source maps to be mapped properly.

sourceMaps: 'inline'
denysdovhan commented 7 years ago

I can confirm. Had the same issue.

@shvaikalesh as I know, you're aware of this problem, aren't you?

millerized commented 7 years ago

@denysdovhan @shvaikalesh do you believe this is related? https://github.com/brunch/brunch/issues/1635

millerized commented 7 years ago

Related: brunch/brunch#1635