File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,8 @@ export default defineConfig(({ command, mode }) => {
257
257
{
258
258
"exports" : {
259
259
"." : {
260
- "import" : " ./index.esm. mjs" ,
261
- "require" : " ./index.cjs. js"
260
+ "import" : " ./index.mjs" ,
261
+ "require" : " ./index.js"
262
262
}
263
263
}
264
264
}
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ Running `vite build` with this config uses a Rollup preset that is oriented towa
161
161
```
162
162
$ vite build
163
163
building for production...
164
- [write] my-lib.es. mjs 0.08kb, brotli: 0.07kb
164
+ [write] my-lib.mjs 0.08kb, brotli: 0.07kb
165
165
[write] my-lib.umd.js 0.30kb, brotli: 0.16kb
166
166
```
167
167
@@ -172,10 +172,10 @@ Recommended `package.json` for your lib:
172
172
"name" : " my-lib" ,
173
173
"files" : [" dist" ],
174
174
"main" : " ./dist/my-lib.umd.js" ,
175
- "module" : " ./dist/my-lib.es. mjs" ,
175
+ "module" : " ./dist/my-lib.mjs" ,
176
176
"exports" : {
177
177
"." : {
178
- "import" : " ./dist/my-lib.es. mjs" ,
178
+ "import" : " ./dist/my-lib.mjs" ,
179
179
"require" : " ./dist/my-lib.umd.js"
180
180
}
181
181
}
You can’t perform that action at this time.
0 commit comments