needs this config to build: ```ts config.plugins.push( new webpack.NormalModuleReplacementPlugin(

needs this config to build:

config.plugins.push(
  new webpack.NormalModuleReplacementPlugin(/^node:.*$/, (resource) => {
    resource.request = resource.request.replace("node:", "");
  }),
);

  config.resolve.fallback = {
  ...config.resolve.fallback,
  async_hooks: false,
};

i cant just remove
node:
from the import as i reuse the code for a page and a worker, and worker only works when the
node:
is specified lol

I'll see if it works in miniflare in a second
Was this page helpful?