Skip to content

Commit

Permalink
fix(demos): remove declaration of external dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Sep 20, 2022
1 parent c83ec51 commit 0f16746
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ const featureAppDefinition: FeatureAppDefinition<
featureServices: {
'test:hello-world-service': '^1.0.0',
},
externals: {
react: '^16.7.0',
},
},

create: ({featureServices}) => ({
Expand Down
3 changes: 0 additions & 3 deletions packages/demos/src/advanced-routing/input-feature-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ const featureAppDefinition: FeatureAppDefinition<
featureServices: {
'test:navigation-service': '^1.0.0',
},
externals: {
react: '^16.7.0',
},
},

create: ({featureServices}) => {
Expand Down
1 change: 0 additions & 1 deletion packages/demos/src/custom-logging/feature-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const featureAppDefinition: FeatureAppDefinition<
Dependencies
> = {
dependencies: {
externals: {react: '^16.7.0'},
featureServices: {'s2:logger': '^1.0.0'},
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ import {ReactFeatureApp} from '@feature-hub/react';
import * as React from 'react';

const featureAppDefinition: FeatureAppDefinition<ReactFeatureApp> = {
dependencies: {
externals: {
react: '^16.7.0',
'@feature-hub/react': '^2.0.0',
},
},

create: ({done}) => ({
render: () => (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ function OuterFeatureApp({featureAppId}: OuterFeatureAppProps): JSX.Element {
}

const featureAppDefinition: FeatureAppDefinition<ReactFeatureApp> = {
dependencies: {
externals: {
react: '^16.7.0',
'@feature-hub/react': '^2.0.0',
},
},

create: ({featureAppId}) => ({
render: () => <OuterFeatureApp featureAppId={featureAppId} />,
}),
Expand Down
4 changes: 0 additions & 4 deletions packages/demos/src/module-loader-amd/feature-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import {ReactFeatureApp} from '@feature-hub/react';
import * as React from 'react';

const featureAppDefinition: FeatureAppDefinition<ReactFeatureApp> = {
dependencies: {
externals: {react: '^16.7.0'},
},

create: () => ({
render: () => (
<Card style={{margin: '20px'}}>
Expand Down
1 change: 0 additions & 1 deletion packages/demos/src/server-side-rendering/feature-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const featureAppDefinition: FeatureAppDefinition<
Dependencies
> = {
dependencies: {
externals: {react: '^16.7.0'},
featureServices: {'s2:serialized-state-manager': '^1.0.0'},
},

Expand Down
1 change: 0 additions & 1 deletion packages/demos/src/todomvc/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const featureAppDefinition: FeatureAppDefinition<
FooterFeatureServices
> = {
dependencies: {
externals: {react: '^16.7.0'},
featureServices: {'test:todomvc-todo-manager': '^1.0.0'},
},

Expand Down
1 change: 0 additions & 1 deletion packages/demos/src/todomvc/main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const featureAppDefinition: FeatureAppDefinition<
MainFeatureServices
> = {
dependencies: {
externals: {react: '^16.7.0'},
featureServices: {'test:todomvc-todo-manager': '^1.0.0'},
},

Expand Down

0 comments on commit 0f16746

Please sign in to comment.