Skip to content

编译的时候排除node_modules如何设置 #134

Description

@starsoul666

onGetWebpackConfig((config) => {
// config.entry('src/index');

config.module
  .rule('tsx')
  .use('babel-loader')
  .tap((options) => {
    options.exclude = /node_modules/;
    return options;
  });

}

自己写了一个插件,使用这个没有生效

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions