Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature list #1

Open
JounQin opened this issue Aug 21, 2019 · 3 comments
Open

feature list #1

JounQin opened this issue Aug 21, 2019 · 3 comments

Comments

@JounQin
Copy link
Member

@JounQin JounQin commented Aug 21, 2019

  • * enhance bundle with manifest - amd
  • peerDependencies as external
  • bundle with package semver version
  • * resolve latest package via server
  • * skip bug versions with https://github.com/cnpm/bug-versions
  • * fallback to previous loaded version on error
  • * register and load extra modules at runtime
@issue-label-bot

This comment has been minimized.

Copy link

@issue-label-bot issue-label-bot bot commented Aug 21, 2019

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.63. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@JounQin

This comment has been minimized.

Copy link
Member Author

@JounQin JounQin commented Aug 21, 2019

If there is no server provided, we should resolve semver version from registry automatically and custom private registry should be supported.

@foreleven

This comment has been minimized.

Copy link

@foreleven foreleven commented Aug 22, 2019

Usage 1: Simple bundle web project with webpack

external with peerDependencies

{
  "peerDependencies": {
    "react": "^16.8.0"
  }
}
// jedi webpack plugin

{
  plugins: [new JediWebpackPlugin()]
}
// index.js as the entry

const jedi = new Jedi();

jedi.bootstrap(() => {
  // do something
});

jedi.bootstrap will do the following things:

  1. read the manifest info from self bundle
  2. load react@16.8.0 from the default provider, unpkg.com
  3. after all dependencies loaded, do the bootstrap callback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.