| 
									
										
										
										
											2023-10-31 15:38:51 +00:00
										 |  |  | import { Config, defineConfig } from '@strapi/pack-up'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const config: Config = defineConfig({ | 
					
						
							|  |  |  |   bundles: [ | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       source: './admin/src/index.js', | 
					
						
							|  |  |  |       import: './dist/admin/index.mjs', | 
					
						
							|  |  |  |       require: './dist/admin/index.js', | 
					
						
							|  |  |  |       runtime: 'web', | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2024-03-19 11:39:09 +01:00
										 |  |  |     { | 
					
						
							|  |  |  |       source: './server/src/index.ts', | 
					
						
							|  |  |  |       import: './dist/server/index.mjs', | 
					
						
							|  |  |  |       require: './dist/server/index.js', | 
					
						
							|  |  |  |       types: './dist/server/src/index.d.ts', | 
					
						
							|  |  |  |       tsconfig: './server/tsconfig.build.json', | 
					
						
							|  |  |  |       runtime: 'node', | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-10-31 15:38:51 +00:00
										 |  |  |   ], | 
					
						
							|  |  |  |   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: {}, | 
					
						
							|  |  |  | }); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default config; |