-
Notifications
You must be signed in to change notification settings - Fork 13
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
Upgrade rollup to v2 #24
Comments
Rollup using by |
Example this is my import {htmlResolver, resolvePlugins} from '...';
import conf from '@svelte-docs/core/rollup.config';
const extraPlugins = resolvePlugins(['resolver', 'conf'], {resolver: htmlResolver});
conf[0].plugins.unshift(...extraPlugins); // injecting plugins to main
conf[1].plugins.unshift(...extraPlugins); // injecting plugins to example
conf.push({something}); // this part here breaks, as v1 doesn't support code splitting using object in input
export default conf; e.g. v1 doesn't support this kind of configuration https://rollupjs.org/guide/en/#input // rollup.config.js
export default {
...,
input: {
a: 'src/main-a.js',
'b/index': 'src/main-b.js'
},
output: {
...,
entryFileNames: 'entry-[name].js'
}
};
If that's the case, I'll look for an alternative solution. |
It is tricky and undocumented =) |
I feel bad hacking the project, but really need it to build using the builtin Cool, I'll see if I can upgrade it cleanly, last time I did it wasn't too bad. Will PR later this week as a heads up. Cheers. |
what about a move to snowpack? |
Yeah! I'm waiting for release to see if it is possible to recreate svelte-docs with svelte-kit. |
Seems we are still in v1, and it's quite hard adding my own plugins and configurations to the build. Having said that it requires updating some of the existing plugins that you have as there are some breaking changes. For that, I'll really need your help on that one, hope you're happy to do it. Many thanks 😄
The text was updated successfully, but these errors were encountered: