Skip to content

Commit

Permalink
fix(compile): require of ES Module bug in ssr (#5450)
Browse files Browse the repository at this point in the history
* fix(compile): require of ES Module bug in ssr

* fix(compile): require of ES Module bug in ssr

---------

Co-authored-by: Opera <xuchongyu@weidian.com>
  • Loading branch information
xcy960815 and Opera authored Aug 23, 2023
1 parent 9607f1d commit 769666a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"main": "lib/index.js",
"module": "esm/index.js",
"types": "lib/index.d.ts",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./esm/index.js",
"require": "./lib/index.js"
}
},
"files": [
"src",
"lib",
Expand Down

0 comments on commit 769666a

Please sign in to comment.