mirror of
				https://github.com/ionic-team/ionic-framework.git
				synced 2025-11-04 13:17:56 +08:00 
			
		
		
		
	Issue number: Internal --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> React and React Router packages do not build correctly on Windows because certain dependencies were not marked as external. ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - 3rd party packages are correctly marked as external ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#footer for more information. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
		
			
				
	
	
		
			18 lines
		
	
	
		
			467 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			467 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import typescript from '@rollup/plugin-typescript';
 | 
						|
const external = ['react', 'react-dom', 'react-router', 'react-router-dom', 'history', 'tslib'];
 | 
						|
 | 
						|
export default {
 | 
						|
  input: 'src/index.ts',
 | 
						|
  output: [
 | 
						|
    {
 | 
						|
      file: 'dist/index.js',
 | 
						|
      format: 'es',
 | 
						|
      sourcemap: true,
 | 
						|
    }
 | 
						|
  ],
 | 
						|
  plugins: [
 | 
						|
    typescript(),
 | 
						|
  ],
 | 
						|
  external: id => external.includes(id) || id.startsWith('@ionic/core') || id.startsWith('ionicons') || id.startsWith('@ionic/react'),
 | 
						|
};
 |