Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"build:esm:rename:map": "find ./lib -type f -name '*.js.map' | sed -E 's/^(.+)\\.js\\.map$/\\1/' | xargs -I % mv %.js.map %.mjs.map",
"clean": "rm -rf cjs esm lib build temp .cache",
"prepublishOnly": "run-s test build",
"prepare": "run-s build",
"start": "npm run clean && npm run build:esm -- --watch",
"test": "jest",
"compare:babel": "babel -o ./compare/output_babel.js ./compare/source.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/properties/createRequireSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const REQUIRE_SYNC_BODY = ts.factory.createReturnStatement(
ts.factory.createConditionalExpression(
ts.factory.createBinaryExpression(
ts.factory.createTypeOfExpression(
ts.factory.createStringLiteral('__webpack_require__'),
ts.factory.createIdentifier('__webpack_require__'),
),
ts.SyntaxKind.ExclamationEqualsEqualsToken,
ts.factory.createStringLiteral('undefined'),
Expand Down