diff --git a/docs/configuration.md b/docs/configuration.md index 72c81bb7f..4376f7130 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -46,5 +46,16 @@ const app = new EmberApp(defaults, { (Note that this _will_ noticeably slow down your app rebuilds.) -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). +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: + +```ts +return require('@embroider/compat').compatBuild(app, Webpack, { + packagerOptions: { + webpackConfig: { + devtool: 'source-map' + } + } +} +``` +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).