Skip to content

Enable webpack code splitting

Mike Greiling requested to merge enable-webpack-code-splitting into master

What does this MR do?

Starts work on #33391 (closed) by enabling and testing webpack code splitting (using the es2015 dynamic import() method)

  • use babel as the eslint parser to prevent it from complaining about stage 2 ECMAScript syntax like import()
  • test that async imports can correctly find and load code-split chunks when using a non-default root url (relative_url_root setting) - closes #32989 (closed)
  • convert emoji picker into a relative url chunk (after refactor in !12432 (merged))

Are there points in the code the reviewer needs to double check?

  • eslint should not choke when it encounters import()
  • emoji picker and PDF file preview should still work when testing with a relative_url_root setting
    • this may be tested in staging

Why was this MR needed?

see #33391 (closed) for a full explanation

Screenshots (if relevant)

n/a

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

related to #33391 (closed)
closes #32989 (closed)

Edited by Mike Greiling

Merge request reports