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

LavaPack bundler #39

Open
10 of 13 tasks
tmpfs opened this issue Sep 14, 2021 · 0 comments
Open
10 of 13 tasks

LavaPack bundler #39

tmpfs opened this issue Sep 14, 2021 · 0 comments
Assignees

Comments

@tmpfs
Copy link
Collaborator

tmpfs commented Sep 14, 2021

The lavapack bundler logic is currently available via the bundle command:

  • Top-level IIFE
  • Inject LavaPack runtime
  • Inject merged policy file(s)
  • Serialize modules list
  • ESM module detector
  • Transform for CJS module init functions
  • Transform for ESM module init functions (static module record)
  • Define and inject module type (esm or cjs)
  • Handle entry points (translate path to module id?)
  • Call LavaPack.loadBundle()

  • Verify source maps
  • Implement tree shaking for ESM modules
  • Parallel module parsing
@tmpfs tmpfs self-assigned this Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant