Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: __esModule is missing from published @babel/parser #15935

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ function buildRollup(packages, buildStandalone) {

const outputFile = path.join(src, dest, filename || "index.js");
await bundle.write({
esModule: true,
file: outputFile,
format,
name,
Expand Down Expand Up @@ -557,6 +558,7 @@ function buildRollup(packages, buildStandalone) {
await bundle.write({
file: outputFile.replace(/\.js$/, ".min.js"),
format,
esModule: true,
interop: "compat",
name,
sourcemap: sourcemap,
Expand Down
1 change: 0 additions & 1 deletion packages/babel-parser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
tt as internalTokenTypes,
type InternalTokenTypes,
} from "./tokenizer/types.ts";
import "./tokenizer/context.ts";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this was originally imported for side effects, but it does not have side effects anymore.


import type { Expression, File } from "./types.ts";

Expand Down