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
7 tasks
JounQin opened this issue Aug 21, 2019 · 3 comments
Open
7 tasks

feature list #1

JounQin opened this issue Aug 21, 2019 · 3 comments

Comments

@JounQin
Copy link
Member

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
Copy link

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
Copy link
Member Author

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
Copy link

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 [email protected] 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
Development

No branches or pull requests

2 participants