Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Jul 20, 2023
1 parent dbd4779 commit 972ece0
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/next-intl/dts.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const preserveDirectives = require('rollup-plugin-preserve-directives').default;
module.exports = {
rollup(config) {
// 'use client' support
// TODO: Maybe only do this for the react-server builds?
config.output.preserveModules = true;
config.plugins.push(preserveDirectives());
config.onwarn = function onwarn(warning, warn) {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-intl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"size": "size-limit"
},
"main": "dist/index.js",
"module": "dist/index.esm.js",
"module": "dist/next-intl.esm.js",
"typings": "dist/index.d.ts",
"exports": {
".": {
Expand Down
1 change: 0 additions & 1 deletion packages/next-intl/src/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@ module.exports = function withNextIntl(i18nPath?: string) {
};

module.exports.initPlugin = initPlugin;
module.exports.default = module.exports;
1 change: 0 additions & 1 deletion packages/next-intl/src/server.react-server.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// TODO: Maybe move this to a folder called "react-server"?
export * from './server/index';
2 changes: 1 addition & 1 deletion packages/next-intl/src/server/react-client/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getIntl = notSupported('getIntl') as unknown as typeof getIntl_type
// prettier-ignore
export const getFormatter = notSupported('getFormatter') as unknown as typeof getFormatter_type;
// prettier-ignore
/** @deprecated Please use the \`locale\` parameter from Next.js instead. */
/** @deprecated Please use the `locale` parameter from Next.js instead. */
export const getLocale = notSupported('getLocale') as unknown as typeof getLocale_type;
// prettier-ignore
export const getNow = notSupported('getNow') as unknown as typeof getNow_type;
Expand Down

0 comments on commit 972ece0

Please sign in to comment.