Fix broken esToRef transform
MODIFY
packages/@romejs/core/common/fileHandlers.ts
packages/@romejs/core/common/fileHandlers.ts
@@ -24,8 +24,8 @@ import {
UNKNOWN_ANALYZE_DEPENDENCIES_RESULT,
} from './types/analyzeDependencies';
import {readFileText} from '@romejs/fs';
-import {TransformProjectDefinition} from '@romejs/js-compiler';
import {generateJS} from '@romejs/js-generator';
+import {TransformProjectDefinition} from '@romejs/js-compiler';
type ExtensionsMap = Map<string, ExtensionHandler>;

MODIFY
packages/@romejs/core/master/bundler/Bundler.ts
packages/@romejs/core/master/bundler/Bundler.ts
@@ -217,6 +217,7 @@ export default class Bundler {
) => Promise<BundleResultBundle>,
addFile: (relative: string, buffer: Buffer | string) => void,
): Promise<JSONManifest> {
+ // TODO figure out some way to use bundleMultiple here
const manifest = manifestDef.manifest;
const newManifest: JSONManifest = {

MODIFY
packages/@romejs/core/master/project/ProjectManager.ts
packages/@romejs/core/master/project/ProjectManager.ts
@@ -585,6 +585,7 @@ export default class ProjectManager {
category: 'projectManager',
filename: def.path.join(),
message: `Duplicate package name <emphasis>${name}</emphasis>`,
+ ...def.consumer.get('name').getDiagnosticPointer('inner-value'),
advice: [
{
type: 'log',

MODIFY
packages/@romejs/js-compiler/transforms/compileForBundle/modern/esToRefTransform.ts
packages/@romejs/js-compiler/transforms/compileForBundle/modern/esToRefTransform.ts
@@ -170,7 +170,10 @@ export default {
if (specifiers !== undefined) {
for (const specifier of specifiers) {
- if (specifier.type === 'ExportLocalSpecifier') {
+ if (
+ specifier.type === 'ExportLocalSpecifier' ||
+ specifier.type === 'ExportExternalSpecifier'
+ ) {
// The local binding has already been rewritten by renameBindings if it existed
let local = specifier.local.name;

Fix broken esToRef transform