#remix.config.js -> Adding external property to module.exports

1 messages · Page 1 of 1 (latest)

frail gull
#

Hello,

I am trying to add the external property in remix.config.js to exclude a few packages from the bundle (mentioned below) . This however is not working. Can someone point out where I might be wrong?

module.exports = {
cacheDirectory: "./node_modules/.cache/remix",
ignoredRouteFiles: ["/.*", "/.css", "**/.test.{js,jsx,ts,tsx}"],
external: ["@progress/kendo-drawing", "@progress/kendo-svg-icons"],
}

Thanks!

runic hollow
frail gull
#

Thanks! I tried the serverDependenciesToBundle approach and it didn't work. If you think external is not a property, could you help me understand the error message I am getting from Remix.

#

The error states "You can mark the path "@progress/kendo-drawing" as external to exclude it from the bundle, which will remove the error

#

Thanks @runic hollow

runic hollow
#

the error looks like those packages are not installed in your node_modules

#

so Remix can't find them

#

I think the error comes from esbuild 🤔