mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-04-29 05:05:32 +08:00
chore: prohibit non-type imports of webextension-polyfill
This commit is contained in:
@@ -39,6 +39,12 @@ module.exports = {
|
||||
from: { path: '^src', pathNot: ['^src/app/store/*'] },
|
||||
to: { path: 'jotai*' },
|
||||
},
|
||||
{
|
||||
name: 'ban-non-type-imports-from-webextension-polyfill',
|
||||
severity: 'error',
|
||||
from: { path: '^src' },
|
||||
to: { path: 'webextension-polyfill', dependencyTypesNot: ['type-only'] },
|
||||
},
|
||||
{
|
||||
name: 'component-cannot-import-pages-or-features',
|
||||
severity: 'error',
|
||||
|
||||
@@ -8,7 +8,7 @@ export function NoAccountActivity() {
|
||||
<Stack py="extra-loose" spacing="extra-loose" justifyContent="center" alignItems="center">
|
||||
<img src={NoActivity} width="120px" />
|
||||
<Caption maxWidth="23ch" textAlign="center">
|
||||
No activity yet.
|
||||
No activity yet
|
||||
</Caption>
|
||||
</Stack>
|
||||
);
|
||||
|
||||
@@ -9,25 +9,17 @@ config.mode = 'production';
|
||||
// Basically, disable any code splitting stuff
|
||||
config.optimization = {
|
||||
...config.optimization,
|
||||
// flagIncludedChunks: false,
|
||||
// concatenateModules: false,
|
||||
minimize: shouldMinify,
|
||||
moduleIds: 'deterministic',
|
||||
splitChunks: {
|
||||
chunks(chunk) {
|
||||
return chunk.name !== 'background';
|
||||
// Only enable code splitting on main bundle
|
||||
return chunk.name === 'index';
|
||||
},
|
||||
// hidePathInfo: false,
|
||||
// minSize: 10000,
|
||||
// maxAsyncRequests: Infinity,
|
||||
// maxInitialRequests: Infinity,
|
||||
// cacheGroups: {
|
||||
// commons: {
|
||||
// test: /[\\/]node_modules[\\/]/,
|
||||
// name: 'vendors',
|
||||
// chunks: 'all',
|
||||
// },l
|
||||
// },
|
||||
hidePathInfo: false,
|
||||
minSize: 10000,
|
||||
maxAsyncRequests: Infinity,
|
||||
maxInitialRequests: Infinity,
|
||||
},
|
||||
...(shouldMinify
|
||||
? {
|
||||
|
||||
Reference in New Issue
Block a user