Skip to content

Commit

Permalink
sourcemap update
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Jun 24, 2024
1 parent 431aa0f commit 48d77af
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const compileFolder = async (folder: string, entryMode: EntryMode = 'single', op
silent: true,
sourcemap: true,
splitting: false,
terserOptions: { format: { comments: false }, output: { comments: false } },
terserOptions: { format: { comments: false } },
tsconfig: 'tsconfig.json',
...options,
})
Expand Down Expand Up @@ -76,8 +76,9 @@ export const packageCompileTsup = async (config?: XyTsupConfig) => {
outDir: 'dist/node',
platform: 'node',
skipNodeModulesBundle: true,
sourcemap: true,
target: 'node16',
terserOptions: { format: { comments: false }, output: { comments: false } },
terserOptions: { format: { comments: false } },
...compile?.tsup?.options,
...(typeof options === 'object' ? options : {}),
},
Expand Down Expand Up @@ -110,8 +111,9 @@ export const packageCompileTsup = async (config?: XyTsupConfig) => {
outExtension: ({ format }) => (format === 'esm' ? { js: '.js' } : { js: '.cjs' }),
platform: 'browser',
skipNodeModulesBundle: true,
sourcemap: true,
target: 'esnext',
terserOptions: { format: { comments: false }, output: { comments: false } },
terserOptions: { format: { comments: false } },
...compile?.tsup?.options,
...(typeof options === 'object' ? options : {}),
},
Expand All @@ -133,8 +135,9 @@ export const packageCompileTsup = async (config?: XyTsupConfig) => {
outExtension: ({ format }) => (format === 'esm' ? { js: '.js' } : { js: '.cjs' }),
platform: 'browser',
skipNodeModulesBundle: true,
sourcemap: true,
target: 'esnext',
terserOptions: { format: { comments: false }, output: { comments: false } },
terserOptions: { format: { comments: false } },
...compile?.tsup?.options,
...(typeof options === 'object' ? options : {}),
},
Expand Down Expand Up @@ -169,8 +172,9 @@ export const packageCompileTsup = async (config?: XyTsupConfig) => {
outExtension: ({ format }) => (format === 'esm' ? { js: '.js' } : { js: '.cjs' }),
platform: 'neutral',
skipNodeModulesBundle: true,
sourcemap: true,
target: 'esnext',
terserOptions: { format: { comments: false }, output: { comments: false } },
terserOptions: { format: { comments: false } },
...compile?.tsup?.options,
...(typeof options === 'object' ? options : {}),
},
Expand All @@ -192,8 +196,9 @@ export const packageCompileTsup = async (config?: XyTsupConfig) => {
outExtension: ({ format }) => (format === 'esm' ? { js: '.js' } : { js: '.cjs' }),
platform: 'neutral',
skipNodeModulesBundle: true,
sourcemap: true,
target: 'esnext',
terserOptions: { format: { comments: false }, output: { comments: false } },
terserOptions: { format: { comments: false } },
...compile?.tsup?.options,
...(typeof options === 'object' ? options : {}),
},
Expand Down

0 comments on commit 48d77af

Please sign in to comment.