Skip to content

Commit c36cfd3

Browse files
authored
Merge pull request #1391 from johanrd/patch-1
docs: Update configuration.md to include an example of generating sourcemaps with Embroider
2 parents eae2261 + 36b8c4a commit c36cfd3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/configuration.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,16 @@ const app = new EmberApp(defaults, {
4646

4747
(Note that this _will_ noticeably slow down your app rebuilds.)
4848

49-
If you're updating from an older version of the addon, you may also need to update your `tsconfig.json`. (Current versions generate the correct config at installation.) Either run `ember generate ember-cli-typescript` or verify you have the same sourcemap settings in your `tscsonfig.json` that appear in [the blueprint](https://github.com/typed-ember/ember-cli-typescript/blob/master/blueprint-files/ember-cli-typescript/tsconfig.json).
49+
If you are using [Embroider](https://github.com/embroider-build/embroider), you might need to inlcude [devtool](https://webpack.js.org/configuration/devtool/) in your webpack configuration:
50+
51+
```ts
52+
return require('@embroider/compat').compatBuild(app, Webpack, {
53+
packagerOptions: {
54+
webpackConfig: {
55+
devtool: 'source-map'
56+
}
57+
}
58+
}
59+
```
5060
61+
If you're updating from an older version of the addon, you may also need to update your `tsconfig.json`. (Current versions generate the correct config at installation.) Either run `ember generate ember-cli-typescript` or verify you have the same sourcemap settings in your `tscsonfig.json` that appear in [the blueprint](https://github.com/typed-ember/ember-cli-typescript/blob/master/blueprint-files/ember-cli-typescript/files/tsconfig.json).

0 commit comments

Comments
 (0)