Øyvind Saltvik
Øyvind Saltvik
It is not possible in the current state of razzle. You could look at making a webpack plugin like next.js has https://github.com/vercel/next.js/blob/c2f38f2af043a24220171d109f3b6a00b52e2089/packages/next/build/webpack/plugins/next-esm-plugin.ts https://github.com/vercel/next.js/blob/7c7ecaa6369690987876f3fc61479b8331f5bbb5/packages/next/build/webpack-config.ts#L1040
Maybe just copy that and build it with tsdx https://tsdx.io/ or port it to es6. It should work with the new razzle coming soon :)
https://github.com/jaredpalmer/razzle/issues/1377
I had another idea for this. But that will have to be a new feature in razzle after 4.0. The idea is to be able to supply razzle with a...
WIP https://github.com/jaredpalmer/razzle/blob/alpha/packages/razzle-plugin-webpack5/src/index.ts#L17 https://github.com/jaredpalmer/razzle/blob/alpha/packages/razzle-plugin-webpack5/src/createConfig.ts#L41
You need to do something like this https://github.com/module-federation/module-federation-examples/blob/master/server-side-rendering/README.md
Could you do this against the canary release and use the razzle graphql plugin?
There is a development release now. A canary that is a development release for 4.x with webpack 5 support. I prioritize new features and support for 4.x. So if this...
To try it now: ```bash npx create-razzle-app@canary testing --ignore-existing cd testing yarn add [email protected] --dev yarn start yarn build yarn start:prod yarn test ``` [See the docs](https://razzle-git-canary.jared.vercel.app/getting-started)
Not sure if that is doable. Maybe using env vars somehow..