Skip to content

Commit

Permalink
chore(rsc): Update page generate templates to use exports fields (#11049
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dac09 authored Jul 23, 2024
1 parent 110a101 commit 294a478
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% if (rscEnabled) { %>
import { Link } from '@redwoodjs/router/dist/link'
import { namedRoutes as routes } from '@redwoodjs/router/dist/namedRoutes'
import { Metadata } from '@redwoodjs/web/dist/components/Metadata'
import { Link } from '@redwoodjs/router/Link'
import { namedRoutes as routes } from '@redwoodjs/router/namedRoutes'
import { Metadata } from '@redwoodjs/web/Metadata'
<% } else { %>
import { Link, routes } from '@redwoodjs/router'
import { Metadata } from '@redwoodjs/web'
Expand Down
4 changes: 4 additions & 0 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
"require": "./dist/cjs/components/htmlTags.js",
"import": "./dist/components/htmlTags.js"
},
"./Metadata": {
"require": "./dist/cjs/components/Metadata.js",
"import": "./dist/components/Metadata.js"
},
"./dist/apollo/suspense": {
"require": "./dist/cjs/apollo/suspense.js",
"import": "./dist/apollo/suspense.js"
Expand Down

0 comments on commit 294a478

Please sign in to comment.