#Exclude file from bundling and minimizing

1 messages · Page 1 of 1 (latest)

faint crest
#

I have a file that is already minimized and so when the project builds, I think there's an issue with the file minimizing twice during bundling. Is there a was to exclude this file from being minimized and still have functions called from it in production?

gritty prairie
#

How is it stored/imported/used? Hard to recommend without a repro

faint crest
#

In the javaish.mjs I added the line export default main

#

And when I build and preview the build I get this error: Uncaught ReferenceError: main is not defined at index-9ccddba1.js:3100:12283 at index-9ccddba1.js:1:24 at index-9ccddba1.js:3409:63807