mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 18:08:11 +00:00 
			
		
		
		
	 e11b6f2e96
			
		
	
	
		e11b6f2e96
		
			
		
	
	
	
	
		
			
			* chore(helper-plugin)!: move useRBAC * chore: get tests working * chore!: remove auth * chore!: remove usePersistentState * fix: refactor building admin package so it shares modules with different entries * fix: session vs local
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Config, defineConfig } from '@strapi/pack-up';
 | |
| 
 | |
| const config: Config = defineConfig({
 | |
|   bundles: [
 | |
|     {
 | |
|       source: './_internal/index.ts',
 | |
|       import: './dist/_internal.mjs',
 | |
|       require: './dist/_internal.js',
 | |
|       types: './dist/_internal/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',
 | |
|       tsconfig: './server/tsconfig.build.json',
 | |
|       runtime: 'node',
 | |
|     },
 | |
|     {
 | |
|       source: './ee/server/src/index.ts',
 | |
|       import: './dist/ee/server/index.mjs',
 | |
|       require: './dist/ee/server/index.js',
 | |
|       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: {},
 | |
|   // If you don't include this, it seems to think vite needs to be bundled, which isn't true.
 | |
|   externals: ['vite'],
 | |
| });
 | |
| 
 | |
| export default config;
 |