Skip to content

Commit

Permalink
fix: 修复 commonjs 构建错误,取消 type=module 默认
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed May 9, 2023
1 parent 281cba0 commit aa41b10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sy-post-publisher",
"private": true,
"version": "0.8.0",
"type": "module",
"type": "commonjs",
"scripts": {
"serve": "python scripts/serve.py",
"dev": "python scripts/dev.py",
Expand All @@ -11,7 +11,7 @@
"test": "vitest --watch",
"docs": "jsdoc -c jsdoc.json utils/api.ts",
"syncVersion": "python scripts/version.py",
"parseChangelog": "ts-node-esm --experimental-specifier-resolution=node tools/changelogParser.ts",
"parseChangelog": "ts-node-esm --experimental-specifier-resolution=node tools/changelogParser.mts",
"prepareRelease": "pnpm syncVersion && pnpm parseChangelog",
"widget": "python scripts/widget.py",
"ext": "python scripts/ext.py",
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export default defineConfig(({ command, mode, ssrBuild }) => {
],
}),
// https://github.com/WarrenJones/vite-plugin-require-transform/issues/10
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
vitePluginRequireTransform({}),
],
Expand Down

0 comments on commit aa41b10

Please sign in to comment.