Skip to content

Commit

Permalink
fix: add /vite export
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPotatoMan committed Apr 3, 2024
1 parent d15af93 commit 8d99729
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: ['src/vite'],
rollup: {
emitCJS: true,
},
})
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
"types": "./dist/types.d.ts",
"import": "./dist/module.mjs",
"require": "./dist/module.cjs"
},
"./vite": {
"types": "./dist/vite.d.ts",
"import": "./dist/vite.mjs",
"require": "./dist/vite.cjs"
}
},
"main": "./dist/module.cjs",
Expand Down
2 changes: 1 addition & 1 deletion src/vite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function MSOfficeAddin(params: MSOfficeAddinConfig): Plugin {
}

return {
name: 'vite-plugin-office-addin',
name: 'msoffice-addin-vite',
enforce: 'post',

async config(config, env) {
Expand Down

0 comments on commit 8d99729

Please sign in to comment.