Skip to content

Commit

Permalink
feat: generate source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
dylandepass committed Nov 21, 2023
1 parent 2aee760 commit 3e7f447
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 0 deletions.
141 changes: 141 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"rollup": "2.60.0",
"rollup-plugin-copy": "3.4.0",
"rollup-plugin-esbuild": "5.0.0",
"rollup-plugin-sourcemaps": "0.6.3",
"semantic-release": "22.0.7",
"semantic-release-react-native": "1.8.2"
},
Expand Down
4 changes: 4 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import nodeResolve from '@rollup/plugin-node-resolve';
import { importMetaAssets } from '@web/rollup-plugin-import-meta-assets';
import esbuild from 'rollup-plugin-esbuild';
import copy from 'rollup-plugin-copy';
import sourcemaps from 'rollup-plugin-sourcemaps';
import sidekickManifestBuildPlugin from './build/build.js';

function shared(browser) {
Expand All @@ -26,6 +27,7 @@ function shared(browser) {
assetFileNames: '[name][extname]',
format: 'es',
dir: `dist/${browser}`,
sourcemap: true,
},

preserveEntrySignatures: false,
Expand All @@ -41,6 +43,8 @@ function plugins(browser) {
minify: true,
target: ['chrome64', 'firefox67', 'safari11.1'],
}),
/** Generate sourcemaps */
sourcemaps(),
/** Bundle assets references via import.meta.url */
importMetaAssets(),
/** Copy static assets */
Expand Down

0 comments on commit 3e7f447

Please sign in to comment.