Skip to content

Commit

Permalink
fix: Fix the problem that the previous demo cannot run properly (#3280)
Browse files Browse the repository at this point in the history
  • Loading branch information
2heal1 authored Oct 27, 2023
1 parent d8add5d commit f65d4a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion federated-npm/app1/src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import('app1')
import('app3')
const RemoteButton = React.lazy(() => import('app2/Button'));
import lodash from 'lodash';
import merge from 'lodash.merge';
Expand Down
2 changes: 1 addition & 1 deletion federated-npm/app1/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const remotes = {
}

const delegatedRemote = {
app3: "app1@http://localhost:3003/remoteEntry.js",
app3: "app3@http://localhost:3003/remoteEntry.js",
}

const delegatedRemotesObject = Object.entries(delegatedRemote).reduce((acc, [name, url]) => {
Expand Down
3 changes: 2 additions & 1 deletion federated-npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"e2e:ci": "yarn start & wait-on http-get://localhost:3001/ && npx cypress run --config-file ../cypress/config/cypress.config.ts --config '{\"supportFile\": \"../cypress/support/e2e.ts\"}' --spec \"./e2e/*.cy.ts\" --browser=chrome"
},
"devDependencies": {
"lerna": "3.22.1"
"lerna": "3.22.1",
"wait-on": "7.0.1"
}
}
3 changes: 2 additions & 1 deletion loadable-react-16/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"e2e:ci": "yarn start & wait-on http-get://localhost:3000/ && npx cypress run --config-file ../cypress/config/cypress.config.ts --config '{\"supportFile\": \"../cypress/support/e2e.ts\"}' --spec \"./e2e/*.cy.ts\" --browser=chrome"
},
"devDependencies": {
"lerna": "3.22.1"
"lerna": "3.22.1",
"wait-on": "7.0.1"
}
}

5 comments on commit f65d4a5

@vercel
Copy link

@vercel vercel bot commented on f65d4a5 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

medusa-example-utils – ./medusa-example/utils

medusa-example-utils.vercel.app
medusa-example-utils-git-master-module-federation.vercel.app
medusa-example-utils-module-federation.vercel.app

@vercel
Copy link

@vercel vercel bot commented on f65d4a5 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

medusa-example-search – ./medusa-example/search

medusa-example-search.vercel.app
medusa-example-search-module-federation.vercel.app
medusa-example-search-git-master-module-federation.vercel.app

@vercel
Copy link

@vercel vercel bot commented on f65d4a5 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

medusa-example-dsl – ./medusa-example/dsl

medusa-example-dsl-module-federation.vercel.app
medusa-example-dsl.vercel.app
medusa-example-dsl-git-master-module-federation.vercel.app

@vercel
Copy link

@vercel vercel bot commented on f65d4a5 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

medusa-example-nav – ./medusa-example/nav

medusa-example-nav-module-federation.vercel.app
medusa-example-nav-git-master-module-federation.vercel.app
medusa-example-nav.vercel.app

@vercel
Copy link

@vercel vercel bot commented on f65d4a5 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

medusa-example-home – ./medusa-example/home

medusa-example-home-module-federation.vercel.app
medusa-example-home.vercel.app
medusa-example-home-git-master-module-federation.vercel.app

Please sign in to comment.