Skip to content

Commit

Permalink
Merge pull request #23936 from storybookjs/norbert/no-sourcemaps-for-…
Browse files Browse the repository at this point in the history
…prebuild-and-addons

Maintenance: Remove sourcemaps generation
  • Loading branch information
yannbf committed Aug 24, 2023
2 parents 7830782 + 279ac58 commit 9bdffe1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/builders/builder-manager/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const getConfig: ManagerBuilder['getConfig'] = async (options) => {
platform: 'browser',
bundle: true,
minify: true,
sourcemap: true,
sourcemap: false,
conditions: ['browser', 'module', 'default'],

jsxFactory: 'React.createElement',
Expand Down
2 changes: 2 additions & 0 deletions scripts/prepare/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
shims: false,
watch,
outDir,
sourcemap: false,
format: ['esm'],
target: ['chrome100', 'safari15', 'firefox91'],
clean: false,
Expand Down Expand Up @@ -119,6 +120,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
entry: allEntries,
watch,
outDir,
sourcemap: false,
format: ['cjs'],
target: 'node16',
...(dtsBuild === 'cjs' ? dtsConfig : {}),
Expand Down
2 changes: 2 additions & 0 deletions scripts/prepare/esm-bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
entry: allEntries,
watch,
outDir,
sourcemap: false,
format: ['esm'],
outExtension: () => ({
js: '.js',
Expand Down Expand Up @@ -116,6 +117,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
entry: allEntries,
watch,
outDir,
sourcemap: false,
format: ['cjs'],
outExtension: () => ({
js: '.js',
Expand Down
1 change: 1 addition & 0 deletions scripts/prepare/tsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
outDir: join(process.cwd(), 'dist'),
target: ts.ScriptTarget.ES2020,
declaration: true,
sourceMap: false,
}
);

Expand Down

0 comments on commit 9bdffe1

Please sign in to comment.