Skip to content

Commit

Permalink
feat: use nanoid to generate build id
Browse files Browse the repository at this point in the history
  • Loading branch information
Asuka109 committed Nov 6, 2023
1 parent b72d1ee commit 754b39c
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 32 deletions.
3 changes: 2 additions & 1 deletion packages/devtools/client/modern.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { appTools, defineConfig } from '@modern-js/app-tools';
import { nanoid } from '@modern-js/utils';
import { ROUTE_BASENAME } from '@modern-js/devtools-kit';
import packageMeta from './package.json';

Expand Down Expand Up @@ -28,7 +29,7 @@ export default defineConfig<'rspack'>({
globalVars: {
'process.env.VERSION': packageMeta.version,
'process.env.PKG_VERSION': packageMeta.version,
'process.env.DEVTOOLS_MARK': 'friw89',
'process.env.DEVTOOLS_MARK': nanoid(),
},
},
output: {
Expand Down
1 change: 1 addition & 0 deletions packages/devtools/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@modern-js/devtools-kit": "workspace:*",
"@modern-js/eslint-config": "workspace:*",
"@modern-js/plugin-proxy": "workspace:*",
"@modern-js/utils": "workspace:*",
"@modern-js/runtime": "workspace:*",
"@modern-js/tsconfig": "workspace:*",
"@modern-js/types": "workspace:*",
Expand Down
Loading

0 comments on commit 754b39c

Please sign in to comment.