-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(browser): support browsers as well as node (#8)
feat(browser): support browsers as well as node For use in the browser, either load typed-html as a module, or use a bundler like webpack or rollup to bundle the package for you. ```ts // Direct ES import: import * as elements from './node_modules/typed-html/dist/elements.js'; // OR, when using a bundler like rollup or webpack import * as elements from 'typed-html'; ``` BREAKING CHANGE: emitted new lines in strings are no longer platform dependent. `\n` is now always used.
- Loading branch information
Showing
11 changed files
with
143 additions
and
118 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
node_modules | ||
/dist | ||
*.js | ||
*.d.ts | ||
*.map | ||
*.tsbuildinfo | ||
*.tsbuildinfo | ||
!src/jsx/*.d.ts |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
**/** | ||
!readme.md | ||
!src/**/*.js | ||
!src/**/*.d.ts | ||
!dist/*.?(js|d.ts) | ||
!README.md | ||
!src/**/*.?(js|d.ts) |
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
Oops, something went wrong.