Skip to content

Commit dae19ab

Browse files
committed
build: enable Babel sourcemaps
In the add-on's documentation they recommend to edit the file `/ember-cli-build.js`: https://github.com/typed-ember/ember-cli-typescript/blob/4e4b161d55aae9d3409f7b7ad9630473af87109b/docs/configuration.md#enabling-sourcemaps But this is in the context of an application. Here, in the context of an add-on, this change must be done in the file `/index.js`: - typed-ember/ember-cli-typescript#1390 (comment) > ... I saw that the babel config for addons is not supposed to go in > `ember-cli-build.js` but in `index.js` - https://github.com/babel/ember-cli-babel/tree/88a8c8154e480cbbd01e96257c5a8097d6be79f1#options > There are a few different options that may be provided to > `ember-cli-babel`. These options are typically set in an apps > `ember-cli-build.js` file, or in an addon or engine's `index.js`.
1 parent 007266e commit dae19ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

+6
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@ module.exports = {
1414
// therefore move the config anywhere but in the meta tag.
1515
this.app.options.storeConfigInMeta = false
1616
},
17+
18+
options: {
19+
babel: {
20+
sourceMaps: 'inline',
21+
},
22+
},
1723
}

0 commit comments

Comments
 (0)