Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Fix @glimmer/core exports for node.js ESM and bundlers #354

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 44 additions & 13 deletions packages/@glimmer/core/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
export {
default as renderComponent,
RenderComponentOptions,
didRender,
getTemplateIterator,
ComponentDefinition,
} from './src/render-component';
import renderComponent, { didRender, getTemplateIterator } from './src/render-component';

export { BaseEnvDelegate } from './src/environment/delegates';
import { BaseEnvDelegate } from './src/environment/delegates';

export type { ComponentDefinition } from './src/render-component';
export type {
ModifierManager,
ModifierCapabilities,
Expand All @@ -16,10 +11,10 @@ export type {
HelperManager,
} from '@glimmer/interfaces';

export { templateFactory as createTemplateFactory } from '@glimmer/opcode-compiler';
export { templateOnlyComponent } from '@glimmer/runtime';
import { templateFactory as createTemplateFactory } from '@glimmer/opcode-compiler';
import { templateOnlyComponent } from '@glimmer/runtime';

export {
import {
setComponentManager,
setModifierManager,
setHelperManager,
Expand All @@ -29,6 +24,42 @@ export {
setComponentTemplate,
} from '@glimmer/manager';

export { getOwner, setOwner } from '@glimmer/owner';
import { getOwner, setOwner } from '@glimmer/owner';
import { precompileTemplate } from './src/template';

export { precompileTemplate } from './src/template';
export {
renderComponent,
didRender,
getTemplateIterator,
BaseEnvDelegate,
createTemplateFactory,
templateOnlyComponent,
setComponentManager,
setModifierManager,
setHelperManager,
componentCapabilities,
modifierCapabilities,
helperCapabilities,
setComponentTemplate,
getOwner,
setOwner,
precompileTemplate,
};
export default {
renderComponent,
didRender,
getTemplateIterator,
BaseEnvDelegate,
createTemplateFactory,
templateOnlyComponent,
setComponentManager,
setModifierManager,
setHelperManager,
componentCapabilities,
modifierCapabilities,
helperCapabilities,
setComponentTemplate,
getOwner,
setOwner,
precompileTemplate,
};