Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add transpile packages to nextjs #378

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

alicanerdurmaz
Copy link
Contributor

To avoid ssr mismatches:

When antd is True:

  • inferencer True, antd True, i18n True
    module.exports = {
        i18n,
        transpilePackages: [
            "@refinedev/nextjs-router", 
            "@refinedev/antd",
            "@refinedev/inferencer",
        ],
    };
  • inferencer False, antd True, i18n True
    module.exports = {
        i18n,
        transpilePackages: [
            "@refinedev/nextjs-router", 
            "@refinedev/antd",
        ],
    };

inferencer True, antd True, i18n False

    module.exports = {
        transpilePackages: [
            "@refinedev/nextjs-router", 
            "@refinedev/antd",
            "@refinedev/inferencer",
        ],
    };

inferencer False, antd True, i18n False

    module.exports = {
        transpilePackages: [
            "@refinedev/nextjs-router", 
            "@refinedev/antd",
        ],
    };

When antd is False (In this case, inferencer is always False):

antd False, inferencer False, i18n True

    module.exports = {
      i18n,
    };

antd False, inferencer False, i18n False

    module.exports = {};

Copy link

cypress bot commented Nov 10, 2023

Passing run #8560 ↗︎

0 1 0 0 Flakiness 0

Details:

feat: add transpile packages to nextjs
Project: Superplate Core Plugins Commit: 2aa7b7aed5
Status: Passed Duration: 10:12 💡
Started: Nov 10, 2023 1:03 PM Ended: Nov 10, 2023 1:13 PM

Review all test suite changes for PR #378 ↗︎

@omeraplak omeraplak merged commit 3b1a313 into master Nov 13, 2023
92 of 136 checks passed
@omeraplak omeraplak deleted the add-transpile-packages-to-nextjs branch November 13, 2023 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants