Skip to content

Commit

Permalink
Add react-dom/server.js as synthetic CJS package (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
drwpow committed Jul 6, 2020
1 parent fd99f14 commit 87c2fc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/03-main-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ After Snowpack builds your dependencies, any package can be imported and run dir
<!-- This runs directly in the browser with `snowpack dev` -->
<body>
<script type='module'>
import * as React from 'react';
import React from 'react';
console.log(React);
</script>
</body>
Expand Down
1 change: 1 addition & 0 deletions src/commands/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class ErrorWithHint extends Error {
const CJS_PACKAGES_TO_AUTO_DETECT = [
'react/index.js',
'react-dom/index.js',
'react-dom/server.js',
'react-is/index.js',
'prop-types/index.js',
'scheduler/index.js',
Expand Down

1 comment on commit 87c2fc7

@vercel
Copy link

@vercel vercel bot commented on 87c2fc7 Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.