mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
refactor(react): transition to Stencil React bindings (#23826)
This commit is contained in:
16
core/package-lock.json
generated
16
core/package-lock.json
generated
@ -18,6 +18,7 @@
|
||||
"@jest/core": "^26.6.3",
|
||||
"@rollup/plugin-node-resolve": "^8.4.0",
|
||||
"@rollup/plugin-virtual": "^2.0.3",
|
||||
"@stencil/react-output-target": "^0.0.12",
|
||||
"@stencil/sass": "1.3.2",
|
||||
"@stencil/vue-output-target": "^0.5.1",
|
||||
"@types/jest": "^26.0.20",
|
||||
@ -1367,6 +1368,15 @@
|
||||
"npm": ">=6.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@stencil/react-output-target": {
|
||||
"version": "0.0.12",
|
||||
"resolved": "https://registry.npmjs.org/@stencil/react-output-target/-/react-output-target-0.0.12.tgz",
|
||||
"integrity": "sha512-X/lWAI/FW4tg/pjwe5UWy8KbRk2vWcWR+S6tBqNzKO6pKD6qr60dfajN13EO9nnm5hGr48FP1m/M8kqFbjpZrg==",
|
||||
"dev": true,
|
||||
"peerDependencies": {
|
||||
"@stencil/core": ">=1.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@stencil/sass": {
|
||||
"version": "1.3.2",
|
||||
"resolved": "https://registry.npmjs.org/@stencil/sass/-/sass-1.3.2.tgz",
|
||||
@ -15010,6 +15020,12 @@
|
||||
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-2.6.0.tgz",
|
||||
"integrity": "sha512-QsxWayZyusnqSZrlCl81R71rA3KqFjVVQSH4E0rGN15F1GdQaFonKlHLyCOLKLig1zzC+DQkLLiUuocexuvdeQ=="
|
||||
},
|
||||
"@stencil/react-output-target": {
|
||||
"version": "0.0.12",
|
||||
"resolved": "https://registry.npmjs.org/@stencil/react-output-target/-/react-output-target-0.0.12.tgz",
|
||||
"integrity": "sha512-X/lWAI/FW4tg/pjwe5UWy8KbRk2vWcWR+S6tBqNzKO6pKD6qr60dfajN13EO9nnm5hGr48FP1m/M8kqFbjpZrg==",
|
||||
"dev": true
|
||||
},
|
||||
"@stencil/sass": {
|
||||
"version": "1.3.2",
|
||||
"resolved": "https://registry.npmjs.org/@stencil/sass/-/sass-1.3.2.tgz",
|
||||
|
||||
@ -40,6 +40,7 @@
|
||||
"@jest/core": "^26.6.3",
|
||||
"@rollup/plugin-node-resolve": "^8.4.0",
|
||||
"@rollup/plugin-virtual": "^2.0.3",
|
||||
"@stencil/react-output-target": "^0.0.12",
|
||||
"@stencil/sass": "1.3.2",
|
||||
"@stencil/vue-output-target": "^0.5.1",
|
||||
"@types/jest": "^26.0.20",
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Config } from '@stencil/core';
|
||||
import { sass } from '@stencil/sass';
|
||||
import { vueOutputTarget } from '@stencil/vue-output-target';
|
||||
import { reactOutputTarget } from '@stencil/react-output-target';
|
||||
|
||||
// @ts-ignore
|
||||
import { apiSpecGenerator } from './scripts/api-spec-generator';
|
||||
@ -61,6 +62,40 @@ export const config: Config = {
|
||||
})
|
||||
],
|
||||
outputTargets: [
|
||||
reactOutputTarget({
|
||||
componentCorePackage: '@ionic/core',
|
||||
includePolyfills: false,
|
||||
includeDefineCustomElements: false,
|
||||
proxiesFile: '../packages/react/src/components/proxies.ts',
|
||||
excludeComponents: [
|
||||
// Routing
|
||||
'ion-router',
|
||||
'ion-route',
|
||||
'ion-route-redirect',
|
||||
'ion-router-link',
|
||||
'ion-router-outlet',
|
||||
'ion-back-button',
|
||||
'ion-tab-button',
|
||||
'ion-tabs',
|
||||
'ion-tab-bar',
|
||||
'ion-button',
|
||||
'ion-card',
|
||||
'ion-fab-button',
|
||||
'ion-item',
|
||||
'ion-item-option',
|
||||
|
||||
// Overlays
|
||||
'ion-action-sheet',
|
||||
'ion-alert',
|
||||
'ion-loading',
|
||||
'ion-modal',
|
||||
'ion-picker',
|
||||
'ion-popover',
|
||||
'ion-toast',
|
||||
|
||||
'ion-icon'
|
||||
]
|
||||
}),
|
||||
vueOutputTarget({
|
||||
componentCorePackage: '@ionic/core',
|
||||
includeImportCustomElements: true,
|
||||
|
||||
Reference in New Issue
Block a user