Skip to content

Commit

Permalink
Merge pull request #1481 from embroider-build/properly-serialize-options
Browse files Browse the repository at this point in the history
Properly serialize options
  • Loading branch information
ef4 committed Jun 28, 2023
2 parents 3030376 + a474294 commit dff78b0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/compat/src/compat-app-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@ export class CompatAppBuilder {
activeAddons[addon.name] = addon.root;
}

let options: CompatResolverOptions['options'] = {
staticHelpers: this.options.staticHelpers,
staticModifiers: this.options.staticModifiers,
staticComponents: this.options.staticComponents,
allowUnsafeDynamicComponents: this.options.allowUnsafeDynamicComponents,
};

let config: CompatResolverOptions = {
// this part is the base ModuleResolverOptions as required by @embroider/core
activeAddons,
Expand All @@ -294,8 +301,8 @@ export class CompatAppBuilder {
// global template resolving
modulePrefix: this.modulePrefix(),
podModulePrefix: this.podModulePrefix(),
options: this.options,
activePackageRules: this.activeRules(),
options,
};

return config;
Expand Down

0 comments on commit dff78b0

Please sign in to comment.