GeezerVison is showing github.com — Remove public export for unstable-shared-subset.js (#23261) · react/react@552c067
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +7Lines changed: 7 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +'use strict'; | | 2 | + | | 3 | +if (process.env.NODE_ENV === 'production') { | | 4 | + module.exports = require('./cjs/react.shared-subset.production.min.js'); | | 5 | +} else { | | 6 | + module.exports = require('./cjs/react.shared-subset.development.js'); | | 7 | +} |
Collapse file Copy file name to clipboardExpand all lines: packages/react/npm/unstable-shared-subset.js -7Lines changed: 0 additions & 7 deletions Collapse file Copy file name to clipboardExpand all lines: packages/react/package.json +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 16 | 16 | "umd/", | 17 | 17 | "jsx-runtime.js", | 18 | 18 | "jsx-dev-runtime.js", | 19 | | - "unstable-shared-subset.js" | | 19 | + "react.shared-subset.js" | 20 | 20 | ], | 21 | 21 | "main": "index.js", | 22 | 22 | "exports": { | 23 | 23 | ".": { | 24 | | - "react-server": "./unstable-shared-subset.js", | | 24 | + "react-server": "./react.shared-subset.js", | 25 | 25 | "default": "./index.js" | 26 | 26 | }, | 27 | 27 | "./package.json": "./package.json", | 28 | 28 | "./jsx-runtime": "./jsx-runtime.js", | 29 | 29 | "./jsx-dev-runtime": "./jsx-dev-runtime.js", | 30 | | - "./unstable-shared-subset": "./unstable-shared-subset.js" | 31 | | - | | 30 | + "./src/*": "./src/*" | 32 | 31 | }, | 33 | 32 | "repository": { | 34 | 33 | "type": "git", | |
Collapse file Copy file name to clipboardExpand all lines: packages/react/src/ReactSharedSubset.experimental.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -37,4 +37,4 @@ export { | 37 | 37 | useMutableSource as unstable_useMutableSource, | 38 | 38 | useTransition, | 39 | 39 | version, | 40 | | -} from './src/React'; | | 40 | +} from './React'; |
Collapse file Copy file name to clipboard File renamed without changes. Collapse file Copy file name to clipboardExpand all lines: scripts/rollup/bundles.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -88,7 +88,8 @@ const bundles = [ | 88 | 88 | { | 89 | 89 | bundleTypes: [NODE_DEV, NODE_PROD], | 90 | 90 | moduleType: ISOMORPHIC, | 91 | | - entry: 'react/unstable-shared-subset', | | 91 | + entry: 'react/src/ReactSharedSubset.js', | | 92 | + name: 'react.shared-subset', | 92 | 93 | global: 'React', | 93 | 94 | minifyWithProdErrorCodes: true, | 94 | 95 | wrapWithModuleBoundaries: false, | |
Collapse file Copy file name to clipboardExpand all lines: scripts/rollup/forks.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -55,7 +55,7 @@ const forks = Object.freeze({ | 55 | 55 | // happens. Other bundles just require('object-assign') anyway. | 56 | 56 | return null; | 57 | 57 | } | 58 | | - if (entry === 'react' || entry === 'react/unstable-shared-subset') { | | 58 | + if (entry === 'react' || entry === 'react/src/ReactSharedSubset.js') { | 59 | 59 | // Use the forked version that uses ES modules instead of CommonJS. | 60 | 60 | return './packages/shared/forks/object-assign.inline-umd.js'; | 61 | 61 | } | @@ -82,7 +82,7 @@ const forks = Object.freeze({ | 82 | 82 | entry, | 83 | 83 | dependencies | 84 | 84 | ) => { | 85 | | - if (entry === 'react' || entry === 'react/unstable-shared-subset') { | | 85 | + if (entry === 'react' || entry === 'react/src/ReactSharedSubset.js') { | 86 | 86 | return './packages/react/src/ReactSharedInternals.js'; | 87 | 87 | } | 88 | 88 | if (!entry.startsWith('react/') && dependencies.indexOf('react') === -1) { | |
|