Skip to content

Commit

Permalink
chore: ship cjs as well for now
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Aug 5, 2024
1 parent dc98328 commit 193b577
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"./react": {
"react-server": {
"import": "./dist/mjs/rsc/index.js",
"require": "./dist/cjs/rsc/index.js",
"types": "./dist/mjs/rsc/index.d.ts"
},
"require": "./dist/cjs/react/index.js",
Expand Down
1 change: 1 addition & 0 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"./app": {
"import": "./dist/mjs/rsc/index.js",
"require": "./dist/cjs/rsc/index.js",
"types": "./dist/mjs/rsc/index.d.ts"
}
},
Expand Down
9 changes: 0 additions & 9 deletions projects/wp-nextjs-app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@ const { withHeadstartWPConfig } = require('@headstartwp/next/config');

/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config) => {
// TODO: figure out why this is needed
config.resolve = {
...config.resolve,
conditionNames: ['import'],
};

return config;
},
logging: {
fetches: {
fullUrl: true,
Expand Down

0 comments on commit 193b577

Please sign in to comment.