mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-14 16:52:26 +08:00

Issue number: resolves #29755 --------- <!-- 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. --> Types do not generate when a React app is opened in IntelliJ IDE. ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Updated `stencil/react-output-target` to the latest - Updated the stencil config file - Updated `jest`, `ts-jest`, and `typescript` because of the changes in `packages/react/tsconfig.json` - Installed `jest-environment-jsdom` because Jest 26 no longer ships it by default since the test environment is now node by default. The test environment needs to be changed to `jsdom` when [building a web app](https://jestjs.io/docs/configuration#testenvironment-string).   ## 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/docs/CONTRIBUTING.md#footer for more information. --> No visual changes are introduced and there will be no changes needed by developers. Their apps will continue to work as is. ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. --> Dev build: 8.2.8-dev.11724100788.103018f2
21 lines
552 B
JavaScript
21 lines
552 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: [
|
|
{
|
|
dir: 'dist/',
|
|
entryFileNames: '[name].js',
|
|
chunkFileNames: '[name]-[hash].js',
|
|
format: 'es',
|
|
sourcemap: true,
|
|
}
|
|
],
|
|
plugins: [
|
|
typescript(),
|
|
],
|
|
external: id => external.includes(id) || id.startsWith('@ionic/core') || id.startsWith('ionicons') || id.startsWith('@stencil/react-output-target'),
|
|
};
|