Skip to content

Commit

Permalink
Refrain from re-exporting defaults in entrypoints
Browse files Browse the repository at this point in the history
This specifically is kind of broken, in that tsc's output in this
scenario is unrecognized by Node's lexer [1].

[1] nodejs/cjs-module-lexer#76
  • Loading branch information
badeball committed Sep 16, 2023
1 parent 834b65b commit 15382ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## Unreleased

- Make the compile output play nicer with ESM, relates to [#1093](https://github.com/badeball/cypress-cucumber-preprocessor/issues/1093).

## v18.0.5

- Add support for Cypress v13, fixes [#1084](https://github.com/badeball/cypress-cucumber-preprocessor/issues/1084).
Expand Down
2 changes: 1 addition & 1 deletion lib/add-cucumber-preprocessor-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function rebuildOriginalConfigObject(
return Object.assign({}, config, config[INTERNAL_PROPERTY_NAME]);
}

export default async function addCucumberPreprocessorPlugin(
export async function addCucumberPreprocessorPlugin(
on: Cypress.PluginEvents,
config: Cypress.PluginConfigOptions,
options: AddOptions = {}
Expand Down
2 changes: 1 addition & 1 deletion lib/entrypoint-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export {
IPreprocessorConfiguration,
} from "./preprocessor-configuration";

export { default as addCucumberPreprocessorPlugin } from "./add-cucumber-preprocessor-plugin";
export { addCucumberPreprocessorPlugin } from "./add-cucumber-preprocessor-plugin";

export {
beforeRunHandler,
Expand Down

0 comments on commit 15382ad

Please sign in to comment.