🐛 bug report
🎛 Configuration (.babelrc, package.json, cli command)
parcel configuration
{
entries: ['./300x300/index.html', './300x600/index.html'],
defaultConfig: path.resolve('./.parcelrc'),
serveOptions: {
publicUrl: '/',
port: 3000
},
logLevel: 'error',
shouldDisableCache: true,
shouldAutoInstall: false,
shouldContentHash: false,
shouldBuildLazily: false,
shouldProfile: false,
defaultTargetOptions: {
publicUrl: '/',
sourceMaps: true,
shouldOptimize: true,
shouldScopeHoist: false,
distDir: './dist/',
}
}
.parcelrc
{
"extends": "@parcel/config-default",
"optimizers": {
"*.{html,xhtml}": [
"...",
// custom optimizer we use in-house, it just appends extra scripts into the finished bundle
"parcel-optimizer-imagelance"
],
},
"transformers": {
"*.svg": ["@parcel/transformer-raw"],
"*.{mp3,wav,mp4,mov,wmv,flv,avi,webm}": ["@parcel/transformer-raw"]
}
}
🤔 Expected Behavior
When i server a live server, i expect to find each entry on a separate URL.
localhost:3000/300x600 returns the ./300x600/index.html entry and localhost:3000/300x300 returns the ./300x300/index.html entry.
😯 Current Behavior
When i serve the live server, I expect to find the entries under different URLs, instead, on all URLs, only the first entry is served.
localhost:3000/300x600 returns the same as localhost:3000/300x300.
🔦 Context
Cannot update to 2.9.0 because of this bug, since it breaks the cloud bundler functionality
🌍 Your Environment
I am running this through parcel API, i do nothing else, just the configuration i provided higher, and I send it an array of entry points expecting to find them on separate URLs. I am using moleculerjs framework to build a microservice, that serves parcels as a cloud bundler. I see no errors thrown
| Software |
Version(s) |
| Parcel |
2.9.1 |
| Node |
16.19.0 |
| Yarn |
1.22.19 |
| Operating System |
mac os |
🐛 bug report
🎛 Configuration (.babelrc, package.json, cli command)
parcel configuration.parcelrc🤔 Expected Behavior
When i server a live server, i expect to find each entry on a separate URL.
localhost:3000/300x600 returns the
./300x600/index.htmlentry and localhost:3000/300x300 returns the./300x300/index.htmlentry.😯 Current Behavior
When i serve the live server, I expect to find the entries under different URLs, instead, on all URLs, only the first entry is served.
localhost:3000/300x600 returns the same as localhost:3000/300x300.
🔦 Context
Cannot update to 2.9.0 because of this bug, since it breaks the cloud bundler functionality
🌍 Your Environment
I am running this through parcel API, i do nothing else, just the configuration i provided higher, and I send it an array of entry points expecting to find them on separate URLs. I am using moleculerjs framework to build a microservice, that serves parcels as a cloud bundler. I see no errors thrown