This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #441 from silentworks/bugfix/legacy-manifest
Fix for legacy manifest file
- Loading branch information
Showing
3 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,6 +170,7 @@ export default function extract_css(client_result: CompileResult, components: Pa | |
} | ||
|
||
const main = client_result.assets.main; | ||
if (process.env.SAPPER_LEGACY_BUILD) main = `legacy/${main}`; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Rich-Harris
Author
Member
|
||
const entry = fs.readFileSync(`${dirs.dest}/client/${main}`, 'utf-8'); | ||
|
||
const replacements = new Map(); | ||
|
I may be being dumb but can you reassign const main here?