add root as compile option also in prod mode

pull/5870/head
Ivan Hofer 5 years ago
parent 2ce0960693
commit 7568a9145b

@ -186,12 +186,13 @@ export default class InlineComponentWrapper extends Wrapper {
} }
} }
component_opts.properties.push(p`root: #ctx.root`);
if (component.compile_options.dev) { if (component.compile_options.dev) {
// TODO this is a terrible hack, but without it the component // TODO this is a terrible hack, but without it the component
// will complain that options.target is missing. This would // will complain that options.target is missing. This would
// work better if components had separate public and private // work better if components had separate public and private
// APIs // APIs
component_opts.properties.push(p`root: #ctx.root`);
component_opts.properties.push(p`$$inline: true`); component_opts.properties.push(p`$$inline: true`);
} }

Loading…
Cancel
Save