-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Outputting codeSplitting bundles into subfolders relative to output.dir
#2216
Comments
@maranomynet you can name the input files with: export default {
input: {
'module1': 'src/module1.js',
'foo/module2': 'src/foo/module2.js',
'foo/bar/module3': 'src/foo/bar/module3.js',
},
experimentalCodeSplitting: true,
output: {
format: cjs,
dir: 'dist'
}
} it could well be worthwhile to have an option for this - I've wondered if we need an |
Ah, wonderful! thank you. But the documentation for the I'd rewrite it and make a pull request, but I feel like I don't understand this well enough to document it correctly. |
well, I guess |
Unfortunately with that approach ( @guybedford ) all sourcemaps declared in the |
When using the
experimentalCodeSplitting
andoutput.dir
options - is it somehow possible to maintain the relative folder structure of the input files - or somehow direct the output of individual bundles relative tooutput.dir
?With this config:
What I get is this flat structure:
but I'd like this:
The text was updated successfully, but these errors were encountered: