Open tmjoen opened 3 years ago
Does it work without manifest: true
?
Are you using dynamic import()
?
Same error with manifest: false
.
I'm not using any dynamic import()
in my code at least, not sure what happens in the vendored stuff.
Are you using multiple paths in rollupOptions.input
?
Trying to understand why that _vendor.17446dc3.js
import exists.
Only one path in input
:
rollupOptions: {
input: {
main: "js/index.js"
}
}
Hmm about the vendor import, I am importing stuff in my js/index.js
:
import 'objectFitPolyfill'
import autosize from 'autosize'
/**
* JUPITER IMPORTS
*/
import {
Application,
Cookies,
Events,
Lazyload,
Lightbox,
Links,
MobileMenu,
Moonwalk,
Popup,
StackedBoxes,
FixedHeader,
Dom,
gsap
} from '@univers-agency/jupiter'
etc.
If I remove everything inside index.js, and just do a console.log('hello')
-- it builds OK without a _vendor chunk.
Hmm, I wouldn't expect a vendor chunk if you only have one input
.
Can you provide a git repository that reproduces the issue?
Absolutely!
I am having the same issue, when I set corejs: false
it works, but I would like to use corejs instead of Polyfill.io
My config:
Build output
I added a debug log in rollup's
fetchStaticDependencies
:which outputs
I wasn't able to figure out where things went wrong after that, this is a bit too heady for me 😅
This is what my
manifest.json
looks like when building withoutlegacyPlugin
:Thanks for any insight and help!