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
bundleNodeModules results in Error: 'default' is not exported #260
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Can you provide more information, |
@hosein2398 Sorry yes you are right, I tried a minimal repro, and there it worked. There must be something wrong with the monorepo setup I got at work. I'll try to repro it again before I close this issue though |
@hosein2398 I'm pretty sure it's because of the yarn-monorepo setup I have. It doesn't seem to resolve the symlinks correctly. See the path: |
Please check out this repo: https://github.com/johannes-z/bili-yarn-monorepo |
extendRollupConfig: config => {
config.inputConfig.preserveSymlinks = true
return config
}, Actually this only worked, because I was building an |
Adding babel: {
exclude: /node_modules\/(?:vue-infinite-loading)/gi,
}, Also, is this setting merged with the default exclude option? Line 21 in fccb87f
|
I'm trying to create bundles with
esm
andumd
, but the build fails because apparently the library I'm using doesn't exportdefault
. Apparently the library dist file is anumd
file:The text was updated successfully, but these errors were encountered: