parent
7d1169b2d7
commit
8a8d973d3c
|
@ -302,7 +302,9 @@ function setInitialDOMProperties(
|
|||
// Noop
|
||||
} else if (propKey === AUTOFOCUS) {
|
||||
// We polyfill it separately on the client during commit.
|
||||
// We blacklist it here rather than in the property list because we emit it in SSR.
|
||||
// We could have excluded it in the property list instead of
|
||||
// adding a special case here, but then it wouldn't be emitted
|
||||
// on server rendering (but we *do* want to emit it in SSR).
|
||||
} else if (registrationNameModules.hasOwnProperty(propKey)) {
|
||||
if (nextProp != null) {
|
||||
if (__DEV__ && typeof nextProp !== 'function') {
|
||||
|
|
|
@ -314,7 +314,7 @@ function getNativeBeforeInputChars(topLevelType: TopLevelType, nativeEvent) {
|
|||
|
||||
// If it's a spacebar character, assume that we have already handled
|
||||
// it at the keypress level and bail immediately. Android Chrome
|
||||
// doesn't give us keycodes, so we need to blacklist it.
|
||||
// doesn't give us keycodes, so we need to ignore it.
|
||||
if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ packages.forEach(name => {
|
|||
module.exports = Object.assign({}, baseConfig, {
|
||||
// Redirect imports to the compiled bundles
|
||||
moduleNameMapper,
|
||||
// Don't run bundle tests on blacklisted -test.internal.* files
|
||||
// Don't run bundle tests on -test.internal.* files
|
||||
testPathIgnorePatterns: ['/node_modules/', '-test.internal.js$'],
|
||||
// Exclude the build output from transforms
|
||||
transformIgnorePatterns: ['/node_modules/', '<rootDir>/build/'],
|
||||
|
|
|
@ -250,9 +250,9 @@ function isProfilingBundleType(bundleType) {
|
|||
}
|
||||
}
|
||||
|
||||
function blacklistFBJS() {
|
||||
function forbidFBJSImports() {
|
||||
return {
|
||||
name: 'blacklistFBJS',
|
||||
name: 'forbidFBJSImports',
|
||||
resolveId(importee, importer) {
|
||||
if (/^fbjs\//.test(importee)) {
|
||||
throw new Error(
|
||||
|
@ -304,7 +304,7 @@ function getPlugins(
|
|||
// Shim any modules that need forking in this environment.
|
||||
useForks(forks),
|
||||
// Ensure we don't try to bundle any fbjs modules.
|
||||
blacklistFBJS(),
|
||||
forbidFBJSImports(),
|
||||
// Use Node resolution mechanism.
|
||||
resolve({
|
||||
skip: externals,
|
||||
|
|
|
@ -162,7 +162,7 @@ const forks = Object.freeze({
|
|||
}
|
||||
},
|
||||
|
||||
// This logic is forked on www to blacklist warnings.
|
||||
// This logic is forked on www to ignore some warnings.
|
||||
'shared/lowPriorityWarning': (bundleType, entry) => {
|
||||
switch (bundleType) {
|
||||
case FB_WWW_DEV:
|
||||
|
@ -174,7 +174,7 @@ const forks = Object.freeze({
|
|||
}
|
||||
},
|
||||
|
||||
// This logic is forked on www to blacklist warnings.
|
||||
// This logic is forked on www to ignore some warnings.
|
||||
'shared/warningWithoutStack': (bundleType, entry) => {
|
||||
switch (bundleType) {
|
||||
case FB_WWW_DEV:
|
||||
|
|
Loading…
Reference in New Issue