diff --git a/packages/react-dom/package.json b/packages/react-dom/package.json index 90b0560e42b18..71d15b5670dc5 100644 --- a/packages/react-dom/package.json +++ b/packages/react-dom/package.json @@ -50,8 +50,8 @@ "./profiling": "./profiling.js", "./test-utils": "./test-utils.js", "./unstable_testing": "./unstable_testing.js", - "./package.json": "./package.json", - "./": "./" + "./src/*": "./src/*", + "./package.json": "./package.json" }, "browser": { "./server.js": "./server.browser.js" diff --git a/packages/react/package.json b/packages/react/package.json index d7f2ac8d99a06..d83fd9375908f 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -27,7 +27,8 @@ "./package.json": "./package.json", "./jsx-runtime": "./jsx-runtime.js", "./jsx-dev-runtime": "./jsx-dev-runtime.js", - "./": "./" + "./unstable-shared-subset": "./unstable-shared-subset.js" + }, "repository": { "type": "git", diff --git a/scripts/rollup/bundles.js b/scripts/rollup/bundles.js index 5381ffe933544..91c4011075988 100644 --- a/scripts/rollup/bundles.js +++ b/scripts/rollup/bundles.js @@ -269,7 +269,7 @@ const bundles = [ FB_WWW_PROD, ], moduleType: RENDERER, - entry: 'react-dom/src/server/ReactDOMLegacyServerBrowser', + entry: 'react-dom/src/server/ReactDOMLegacyServerBrowser.js', name: 'react-dom-server-legacy.browser', global: 'ReactDOMServer', minifyWithProdErrorCodes: true, @@ -285,7 +285,7 @@ const bundles = [ { bundleTypes: [NODE_DEV, NODE_PROD], moduleType: RENDERER, - entry: 'react-dom/src/server/ReactDOMLegacyServerNode', + entry: 'react-dom/src/server/ReactDOMLegacyServerNode.js', name: 'react-dom-server-legacy.node', externals: ['react', 'stream'], minifyWithProdErrorCodes: false, @@ -302,7 +302,7 @@ const bundles = [ { bundleTypes: [NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD], moduleType: RENDERER, - entry: 'react-dom/src/server/ReactDOMFizzServerBrowser', + entry: 'react-dom/src/server/ReactDOMFizzServerBrowser.js', name: 'react-dom-server.browser', global: 'ReactDOMServer', minifyWithProdErrorCodes: true, @@ -312,7 +312,7 @@ const bundles = [ { bundleTypes: [NODE_DEV, NODE_PROD], moduleType: RENDERER, - entry: 'react-dom/src/server/ReactDOMFizzServerNode', + entry: 'react-dom/src/server/ReactDOMFizzServerNode.js', name: 'react-dom-server.node', global: 'ReactDOMServer', minifyWithProdErrorCodes: false, @@ -322,7 +322,7 @@ const bundles = [ { bundleTypes: __EXPERIMENTAL__ ? [FB_WWW_DEV, FB_WWW_PROD] : [], moduleType: RENDERER, - entry: 'react-server-dom-relay/src/ReactDOMServerFB', + entry: 'react-server-dom-relay/src/ReactDOMServerFB.js', global: 'ReactDOMServerStreaming', minifyWithProdErrorCodes: false, wrapWithModuleBoundaries: false, diff --git a/scripts/shared/inlinedHostConfigs.js b/scripts/shared/inlinedHostConfigs.js index 5b4520d8b2f11..b2b9639505a7b 100644 --- a/scripts/shared/inlinedHostConfigs.js +++ b/scripts/shared/inlinedHostConfigs.js @@ -12,7 +12,7 @@ module.exports = [ entryPoints: [ 'react-dom', 'react-dom/unstable_testing', - 'react-dom/src/server/ReactDOMFizzServerNode', + 'react-dom/src/server/ReactDOMFizzServerNode.js', 'react-server-dom-webpack/writer.node.server', 'react-server-dom-webpack', ], @@ -34,7 +34,7 @@ module.exports = [ entryPoints: [ 'react-dom', 'react-dom/unstable_testing', - 'react-dom/src/server/ReactDOMFizzServerBrowser', + 'react-dom/src/server/ReactDOMFizzServerBrowser.js', 'react-server-dom-webpack/writer.browser.server', 'react-server-dom-webpack', ], @@ -53,8 +53,8 @@ module.exports = [ { shortName: 'dom-legacy', entryPoints: [ - 'react-dom/src/server/ReactDOMLegacyServerBrowser', // react-dom/server.browser - 'react-dom/src/server/ReactDOMLegacyServerNode', // react-dom/server.node + 'react-dom/src/server/ReactDOMLegacyServerBrowser.js', // react-dom/server.browser + 'react-dom/src/server/ReactDOMLegacyServerNode.js', // react-dom/server.node ], paths: [ 'react-dom', @@ -99,7 +99,7 @@ module.exports = [ entryPoints: [ 'react-server-dom-relay', 'react-server-dom-relay/server', - 'react-server-dom-relay/src/ReactDOMServerFB', + 'react-server-dom-relay/src/ReactDOMServerFB.js', ], paths: ['react-dom', 'react-server-dom-relay'], isFlowTyped: true,