Skip to content

feat(esbuild): exposes minify pure config#575

Merged
ycjcl868 merged 3 commits into
umijs:masterfrom
drizzlesconsin:feat-esbuild-pure-option
Apr 2, 2021
Merged

feat(esbuild): exposes minify pure config#575
ycjcl868 merged 3 commits into
umijs:masterfrom
drizzlesconsin:feat-esbuild-pure-option

Conversation

@drizzlesconsin
Copy link
Copy Markdown
Contributor

esbuild#pure

Support remove console.

export default {
  esbuild: {
    target: 'es5',
    pure: ['console.log'],
  },
};

Related issues

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 29, 2021

Codecov Report

Merging #575 (399659e) into master (04189a7) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #575   +/-   ##
=======================================
  Coverage   46.73%   46.73%           
=======================================
  Files          66       66           
  Lines        1577     1577           
  Branches      435      435           
=======================================
  Hits          737      737           
  Misses        839      839           
  Partials        1        1           
Impacted Files Coverage Δ
packages/plugin-esbuild/src/index.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04189a7...399659e. Read the comment docs.

Comment thread packages/plugin-esbuild/src/index.ts Outdated
drizzlesconsin and others added 2 commits March 31, 2021 15:16
Co-authored-by: 信鑫-King <45808948@qq.com>
@ycjcl868 ycjcl868 merged commit ed7f688 into umijs:master Apr 2, 2021
@ycjcl868
Copy link
Copy Markdown
Contributor

umijs/umi#6425

Comment thread packages/plugin-esbuild/src/index.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants