-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from renzp94/rspack
fix(ui): 修复title指定为undefined字符串时判断错误的问题
- Loading branch information
Showing
40 changed files
with
120 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
packages/rzpack/src/configs/alias.ts → packages/rzpack/src/webpack/configs/alias.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { pathResolve } from 'rzpack-utils' | ||
import type WebpackChain from 'webpack-chain' | ||
|
||
const resolveAlias = (webpackChain: WebpackChain) => { | ||
export default (webpackChain: WebpackChain) => { | ||
webpackChain.resolve.alias.set('@', pathResolve('src', process.cwd())) | ||
} | ||
|
||
export default resolveAlias |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
packages/rzpack/src/configs/extensions.ts → .../rzpack/src/webpack/configs/extensions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import type WebpackChain from 'webpack-chain' | ||
|
||
const resolveExtensions = (webpackChain: WebpackChain) => { | ||
export default (webpackChain: WebpackChain) => { | ||
webpackChain.resolve.extensions.add('.jsx').add('.js').add('.ts').add('.tsx') | ||
} | ||
|
||
export default resolveExtensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import type WebpackChain from 'webpack-chain' | ||
import type { RzpackConfigs } from '../..' | ||
import loadAliasConfigs from './alias' | ||
import loadEntryConfigs from './entry' | ||
import loadExtensionsConfigs from './extensions' | ||
import loadLazyCompilationConfigs from './lazyCompilation' | ||
import loadMinimizerConfigs from './minimizer' | ||
import loadOutputConfigs from './output' | ||
const loadBaseConfigs = ( | ||
webpackChain: WebpackChain, | ||
configs: RzpackConfigs, | ||
) => { | ||
const { entry, output, assets, lazyCompilation } = configs | ||
loadAliasConfigs(webpackChain) | ||
loadEntryConfigs(webpackChain, entry) | ||
loadExtensionsConfigs(webpackChain) | ||
loadOutputConfigs(webpackChain, output) | ||
loadLazyCompilationConfigs(webpackChain, lazyCompilation) | ||
if (process.env.NODE_ENV === 'production') { | ||
loadMinimizerConfigs(webpackChain, assets?.jsxTools, assets?.imageMini) | ||
} | ||
} | ||
|
||
export default loadBaseConfigs |
Oops, something went wrong.