Tips for Fully Utilizing Embroider from 0 to 100

Hi everyone,

I wanted to reach out for some advice on how to fully utilize Embroider in our Ember.js project. I noticed that certain configurations (as seen in section 1.0 below) were not set to true. As a result, the application isn’t fully leveraging Embroider’s capabilities.

Before proceeding with route code splitting, I need to ensure that the configurations in section 1.0 are correctly set to true. Additionally, section 1.1 contains the current content of our package.json, which includes some Ember addons that haven’t yet been updated for Embroider compatibility.

Question: 1. What would you recommend I do first? Should I focus on updating the Ember addons to ensure they are compatible with Embroider, or should I set the Embroider options to true and address any errors that arise afterward? 2. When should I apply the optimized flags?

Section 1.0

return require('@embroider/compat').compatBuild(app, Webpack, {
    staticAddonTestSupportTrees: false,
    staticAddonTrees: false,
    staticHelpers: false,
    staticModifiers: false,
    staticComponents: false,
});

Section 1.1

{
    "@embroider/compat": "^1.9.0",
    "@embroider/core": "^1.9.0",
    "@embroider/webpack": "file:./custom-packages/embroider-webpack-1.9.0patched.tgz",
    "ember-source": "~3.25.0",
    "ember-cli": "~3.28.0",
    "ember-data": "~3.23.0"
    .....
    .....
    .....
    many more
}

Any guidance or tips you can provide would be greatly appreciated!

Replied here