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;
  });

}

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions