Skip to content

Commit

Permalink
feat: 更新import.meta的解析配置
Browse files Browse the repository at this point in the history
  • Loading branch information
RockShi1994 committed Oct 31, 2024
1 parent 0919c6a commit 39e04f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/rspack/src/config/base-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ export function createBaseConfig(
const plugins = new Plugins(gez, buildTarget);
const emit = buildTarget === 'client';
const module: RspackOptions['module'] = {
parser: {
javascript: {
importMeta: false // 不对 import.meta 进行解析替换
}
},
generator: {
asset: {
emit
Expand Down

0 comments on commit 39e04f3

Please sign in to comment.