Skip to content

Commit

Permalink
fix: the cjs require type and default type
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter committed Oct 18, 2024
1 parent 728a6f4 commit 36ce64d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
"license": "MIT",
"description": "The fast Rust-based web bundler with webpack-compatible API",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"types": "./dist/indexType.d.ts",
"publishConfig": {
"access": "public",
"provenance": true
},
"exports": {
".": {
"types": "./dist/indexType.d.ts",
"default": "./dist/index.js"
},
"./hot/*": "./hot/*.js",
Expand Down
3 changes: 3 additions & 0 deletions packages/rspack/src/indexType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// fix https://github.com/web-infra-dev/rspack/issues/8095
import { rspack } from "./index";
export = rspack;

0 comments on commit 36ce64d

Please sign in to comment.