-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(build): fixes for UMD build #3085
Conversation
Signed-off-by: Oleksandr Fediashov <[email protected]>
@@ -31,7 +32,8 @@ const plugins = [ | |||
[ | |||
'transform-react-remove-prop-types', | |||
{ | |||
mode: 'wrap', | |||
mode: isUMDBuild ? 'remove' : 'wrap', | |||
removeImport: isUMDBuild, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove propTypes
fully from UMD build
@@ -15,8 +15,8 @@ | |||
"scripts": { | |||
"build": "cross-env NODE_ENV=production gulp build", | |||
"build:changelog": "github_changelog_generator --no-issues --no-unreleased --release-branch master --since-tag $(git describe --abbrev=0 --tags $(git rev-parse HEAD~300))", | |||
"build:docs": "gulp --series dll build:docs", | |||
"build:dist": "gulp --series dll build:dist", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need dll in dist
and docs
Codecov Report
@@ Coverage Diff @@
## master #3085 +/- ##
=======================================
Coverage 99.92% 99.92%
=======================================
Files 163 163
Lines 2739 2739
=======================================
Hits 2737 2737
Misses 2 2 Continue to review full report at Codecov.
|
new webpack.NoEmitOnErrorsPlugin(), | ||
) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are using react-static
now, so we don't use __DEV__
variable.
Fixes #3079.