We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7944f2 commit 6047bf5Copy full SHA for 6047bf5
packages/common/templates/parcel.js
@@ -10,7 +10,7 @@ class ParcelTemplate extends Template {
10
getEntries(configurationFiles: { [type: string]: Object }) {
11
const entries = [];
12
13
- if (typeof document !== 'undefined') {
+ if (typeof document !== 'undefined' && document.location.pathname !== '/') {
14
// Push the location of the address bar, eg. when someone has a file
15
// /2.html open, you actually want to have that as entry point instead
16
// of index.html.
0 commit comments