chore: build babel-polyfill-dist on make watch (#11951)

This commit is contained in:
Huáng Jùnliàng 2020-08-12 10:18:36 -04:00 committed by GitHub
parent df9ee2c7cd
commit 2e2d15fb4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -75,8 +75,8 @@ build-no-bundle: clean clean-lib
BABEL_ENV=development $(YARN) gulp build-no-bundle
# Ensure that build artifacts for types are created during local
# development too.
$(MAKE) generate-type-helpers
$(MAKE) build-typings
# Babel-transform-fixture-test-runner requires minified polyfill for performance
$(MAKE) generate-type-helpers build-typings build-polyfill-dist
build-no-bundle-ci: bootstrap-only
$(MAKE) build-no-bundle

View File

@ -39,7 +39,7 @@ function createContext() {
// Initialize the test context with the polyfill, and then freeze the global to prevent implicit
// global creation in tests, which could cause things to bleed between tests.
runModuleInTestContext(
"@babel/polyfill/dist/polyfill.min",
"@babel/polyfill/dist/polyfill.min.js",
__filename,
context,
moduleCache,