-
Notifications
You must be signed in to change notification settings - Fork 108
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 #474 from rdkcentral/release/2.10.0
Release - v2.10.0
- Loading branch information
Showing
43 changed files
with
4,874 additions
and
1,099 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 |
---|---|---|
|
@@ -47,3 +47,6 @@ dist | |
|
||
# Type Docs | ||
/typedocs | ||
|
||
# ES5 version of the Lightning Inspector | ||
/devtools/lightning-inspect.es5.js |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type { Plugin } from 'vite'; | ||
|
||
/** | ||
* Simple vite plugin to add a copyright banner to the beginning of each chunk. | ||
* | ||
* @param bannerText The banner text to add to each chunk. | ||
*/ | ||
export function banner(bannerText: string): Plugin { | ||
return { | ||
name: 'banner', | ||
enforce: 'post', | ||
generateBundle(options, bundle) { | ||
// Add banner to the beginning of each chunk | ||
Object.keys(bundle).forEach((key) => { | ||
const file = bundle[key]; | ||
if (file.type === 'chunk') { | ||
file.code = bannerText + '\n' + file.code; | ||
} | ||
}); | ||
} | ||
}; | ||
} |
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
Oops, something went wrong.