diff --git a/packages/addon-dev/src/rollup-gjs-plugin.ts b/packages/addon-dev/src/rollup-gjs-plugin.ts index 8dc5e34a5..ecd2b26ce 100644 --- a/packages/addon-dev/src/rollup-gjs-plugin.ts +++ b/packages/addon-dev/src/rollup-gjs-plugin.ts @@ -7,9 +7,7 @@ const PLUGIN_NAME = 'rollup-gjs-plugin'; const processor = new Preprocessor(); // import { parse as pathParse } from 'path'; -export default function rollupGjsPlugin( - { inline_source_map } = { inline_source_map: true } -): Plugin { +export default function rollupGjsPlugin(): Plugin { return { name: PLUGIN_NAME, @@ -20,12 +18,12 @@ export default function rollupGjsPlugin( if (!gjsFilter(id)) { return null; } - let code = processor.process(input, { + let { code, map } = processor.process(input, { filename: id, - inline_source_map, }); return { code, + map, }; }, }, diff --git a/packages/addon-dev/src/rollup.ts b/packages/addon-dev/src/rollup.ts index ce035cc40..3f83e2822 100644 --- a/packages/addon-dev/src/rollup.ts +++ b/packages/addon-dev/src/rollup.ts @@ -59,8 +59,8 @@ export class Addon { return hbs(options); } - gjs(options?: { inline_source_map: boolean }) { - return gjs(options); + gjs() { + return gjs(); } // this does incremental updates to the dist files and also deletes files that are not part of the generated bundle