build: set esbuildOptions outbase to 'src' in tsup config
Set `options.outbase = 'src'` in the esbuildOptions callback to ensure output files preserve the correct directory structure relative to the `src` folder, preventing path flattening during the build process.
This commit is contained in:
@@ -78,6 +78,7 @@ export default defineConfig([
|
|||||||
],
|
],
|
||||||
bundle: false, // Don't bundle these files
|
bundle: false, // Don't bundle these files
|
||||||
esbuildOptions(options) {
|
esbuildOptions(options) {
|
||||||
|
options.outbase = 'src';
|
||||||
options.loader = {
|
options.loader = {
|
||||||
'.js': 'jsx',
|
'.js': 'jsx',
|
||||||
'.jsx': 'jsx',
|
'.jsx': 'jsx',
|
||||||
|
|||||||
Reference in New Issue
Block a user