@embroider/shared-internals
Advanced tools
Comparing version 0.46.2 to 0.47.0
{ | ||
"name": "@embroider/shared-internals", | ||
"version": "0.46.2", | ||
"version": "0.47.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Utilities shared among the other embroider packages", |
export declare const emberVirtualPackages: Set<string>; | ||
export declare const emberVirtualPeerDeps: Set<string>; | ||
export declare const templateCompilationModules: readonly { | ||
module: string; | ||
exportedName: string; | ||
}[]; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.emberVirtualPeerDeps = exports.emberVirtualPackages = void 0; | ||
exports.templateCompilationModules = exports.emberVirtualPeerDeps = exports.emberVirtualPackages = void 0; | ||
// I'm doing this as a json import because even though that's not standard JS, | ||
@@ -42,2 +42,10 @@ // it's relaively easy to consume into builds for the web. As opposed to doing | ||
exports.emberVirtualPackages.add('@embroider/macros'); | ||
// These are the known names that people use to import template precomiplation | ||
// macros from. | ||
exports.templateCompilationModules = Object.freeze([ | ||
{ module: 'htmlbars-inline-precompile', exportedName: 'default' }, | ||
{ module: 'ember-cli-htmlbars-inline-precompile', exportedName: 'default' }, | ||
{ module: 'ember-cli-htmlbars', exportedName: 'hbs' }, | ||
{ module: '@ember/template-precompilation', exportedName: 'precompileTemplate' }, | ||
]); | ||
//# sourceMappingURL=ember-standard-modules.js.map |
import type { NodePath } from '@babel/traverse'; | ||
import type * as t from '@babel/types'; | ||
import type * as Babel from '@babel/core'; | ||
import type { types as t } from '@babel/core'; | ||
import { ImportUtil } from 'babel-import-util'; | ||
@@ -16,12 +17,12 @@ export interface Options { | ||
} | ||
export default function main(babel: unknown): { | ||
export default function main(babel: typeof Babel): { | ||
visitor: { | ||
Program: { | ||
enter(path: NodePath<t.Program>, state: State): void; | ||
exit(path: NodePath<t.Program>, state: State): void; | ||
enter(path: NodePath<Babel.types.Program>, state: State): void; | ||
exit(path: NodePath<Babel.types.Program>, state: State): void; | ||
}; | ||
ExportDefaultDeclaration(path: NodePath<t.ExportDefaultDeclaration>, state: State): void; | ||
ExportNamedDeclaration(path: NodePath<t.ExportNamedDeclaration>, state: State): void; | ||
ExportDefaultDeclaration(path: NodePath<Babel.types.ExportDefaultDeclaration>, state: State): void; | ||
ExportNamedDeclaration(path: NodePath<Babel.types.ExportNamedDeclaration>, state: State): void; | ||
}; | ||
}; | ||
export {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90520
960