Skip to content

Commit

Permalink
Merge pull request #4 from rdkcentral/fix/export-library
Browse files Browse the repository at this point in the history
Changed rollup config to enable ThunderJS to be imported in a (Lightn…
  • Loading branch information
wouterlucas authored Apr 8, 2020
2 parents f0eeda9 + b0e8fd5 commit d0e3d04
Show file tree
Hide file tree
Showing 11 changed files with 441 additions and 25 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
**/node_modules
**/dist
**/module
**/alias
File renamed without changes.
6 changes: 4 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"editor.formatOnSave": false,
"eslint.validate": [
{ "language": "javascript", "autoFix": true},
"javascript"
],
"eslint.alwaysShowStatus": true,
"eslint.autoFixOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}
26 changes: 26 additions & 0 deletions alias/ws.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

let ws = null

if (typeof WebSocket !== 'undefined') {
ws = WebSocket
}

module.exports = ws
2 changes: 1 addition & 1 deletion dist/thunderJS.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d0e3d04

Please sign in to comment.