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

Change packaging to create only dist/mapml-viewer.js and dist/web-map.js (everything bundled) #984

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

prushforth
Copy link
Member

  • Change rollup to produce two targets: mapml-viewer.js and web-map.js
  • Refactor index.js, create index-web-map.js as separate start point for web-map.js build / rollup target
  • All .js files are bundled into the main targets. To Do: tree-shaking?
  • Move import statements into .js files that depend on the import.
  • Remove most symbols from the M global variable, leaving TCRS mostly
  • Create and import GlobalM.js. Rename options.js->DefaultMapOptions.js
  • pmtilesRules.js now does not require M.protomapsL usage, just use protomapsL import symbols directly (will affect experiment).
  • Update tests to keep them running / not flaky if possible

- Refactor index.js, create index-web-map.js as separate start point for
web-map.js build / rollup target
- All .js files are bundled into the main targets. To Do: tree-shaking?
- Move import statements into .js files that depend on the import.
- Remove most symbols from the M global variable, leaving TCRS mostly
- Create and import GlobalM.js. Rename options.js->DefaultMapOptions.js
- pmtilesRules.js now does not require M.protomapsL usage, just use
protomapsL import symbols directly (will affect experiment).
- Update tests to keep them running / not flaky if possible
prushforth pushed a commit to prushforth/experiments that referenced this pull request Sep 18, 2024
prushforth pushed a commit to Maps4HTML/experiments that referenced this pull request Sep 18, 2024
@prushforth prushforth merged commit 9226b95 into Maps4HTML:main Sep 18, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant