Skip to content

Commit

Permalink
πŸ› fix: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 16, 2023
1 parent 27c768c commit ef162a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
13 changes: 0 additions & 13 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { defineConfig } from 'dumi';

import { description, homepage, name } from './package.json';

const isProduction = process.env.NODE_ENV === 'production';
const isWin = process.platform === 'win32';

const themeConfig = {
Expand Down Expand Up @@ -89,18 +88,6 @@ export default defineConfig({
define: {
'process.env': process.env,
},
extraBabelPlugins: [
'babel-plugin-antd-style',
[
'babel-plugin-styled-components',
{
displayName: process.env.NODE_ENV === 'development',
minify: isProduction,
pure: true,
transpileTemplateLiterals: true,
},
],
],
favicons: ['https://npm.elemecdn.com/@lobehub/assets-favicons/assets/favicon.ico'],
locales: [{ id: 'en-US', name: 'English' }],
mfsu: isWin ? undefined : {},
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,14 @@
"zustand-utils": "^1"
},
"devDependencies": {
"@commitlint/cli": "^18.0.0",
"@commitlint/cli": "^18",
"@lobehub/lint": "latest",
"@testing-library/react": "^14",
"@types/lodash-es": "^4",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vitest/coverage-v8": "latest",
"babel-plugin-antd-style": "latest",
"commitlint": "^18.0.0",
"commitlint": "^18",
"concurrently": "^8",
"cross-env": "^7",
"dumi": "^2",
Expand All @@ -100,7 +99,7 @@
"father": "4.3.1",
"husky": "^8",
"jsdom": "^22",
"lint-staged": "^15.0.0",
"lint-staged": "^15",
"prettier": "^3",
"react": "^18",
"react-dom": "^18",
Expand Down
4 changes: 2 additions & 2 deletions src/services/genMarkdownInstallation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const genMarkdownInstallation = (options: MarkdownInstallationOptions) =>
const [bunShield, bunLink] = bunShields;

const esmBlock = `
> **Important**\\
> [!IMPORTANT]\\
> This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
`;

Expand All @@ -32,7 +32,7 @@ $ ${bun ? 'bun add' : 'pnpm install'} ${packageName}
const nextjsBlock = `
### Compile with Next.js
> **Note**\\
> [!NOTE]\\
> By work correct with Next.js SSR, add \`transpilePackages: ['${packageName}']\` to \`next.config.js\`. For example:
\`\`\`js
Expand Down

0 comments on commit ef162a3

Please sign in to comment.