You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're looking to add source maps to your output in your rollup.config.js change the typescript plugin to:
typescript({sourceMap: true}),
And under the output section add:
sourcemap: true,
So it should look like:
exportdefault{input: "src/manifest.json",output: {dir: "dist",format: "esm",sourcemap: true,},plugins: [// always put chromeExtension() before other pluginschromeExtension(),simpleReloader(),svelte({preprocess: sveltePreprocess(),compilerOptions: {// enable run-time checks when not in productiondev: !production,},}),postcss({minimize: production}),// the plugins below are optionalresolve({dedupe: ["svelte"],}),// https://github.com/rollup/plugins/tree/master/packages/commonjscommonjs(),typescript({sourceMap: true}),// Empties the output dir before a new buildemptyDir(),// If we're building for production, minifyproduction&&terser(),// Outputs a zip file in ./releasesproduction&&zip({dir: "releases"}),],}
Not working debugging via IDE (like vscode) for typescript based chrome extension due to lack of source map within chrome extension.
The text was updated successfully, but these errors were encountered: