-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit addresses some issues when it comes to supporting SSR in Svelte. The renaming of files to .js to .mjs isn't necessary. The SSR build cycle simply does not like non-descript file names, so by default every reference needs to have at least .js and that will work. An additional update is to wrap an if statement around the window object request. The SSR environment has no ref to window and thus does not understand this request. Wrapping an if window is defined allows the SSR build to bypass that that function. Changes to be committed: modified: index.js modified: package.json renamed: src/auro-input.mjs -> src/auro-input.js renamed: src/base-input.mjs -> src/base-input.js renamed: src/i18n.mjs -> src/i18n.js modified: test/auro-input.test.js
- Loading branch information
1 parent
c18c290
commit fa45148
Showing
6 changed files
with
12 additions
and
10 deletions.
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
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