mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 01:47:13 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			698 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			698 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { defineConfig } from '@strapi/pack-up';
 | |
| 
 | |
| export default defineConfig({
 | |
|   bundles: [
 | |
|     {
 | |
|       source: './admin/src/index.ts',
 | |
|       import: './dist/admin/index.mjs',
 | |
|       require: './dist/admin/index.js',
 | |
|       types: './dist/admin/src/index.d.ts',
 | |
|       runtime: 'web',
 | |
|     },
 | |
|     {
 | |
|       source: './server/src/index.ts',
 | |
|       import: './dist/server/index.mjs',
 | |
|       require: './dist/server/index.js',
 | |
|       types: './dist/server/src/index.d.ts',
 | |
|       runtime: 'node',
 | |
|     },
 | |
|   ],
 | |
|   dist: './dist',
 | |
|   /**
 | |
|    * Because we're exporting a server & client package
 | |
|    * which have different runtimes we want to ignore
 | |
|    * what they look like in the package.json
 | |
|    */
 | |
|   exports: {},
 | |
| });
 | 
