-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
bc2021a
commit df3f9a6
Showing
7 changed files
with
1,737 additions
and
194 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,17 @@ | ||
import commonjs from "@rollup/plugin-commonjs"; | ||
import nodeResolve from "@rollup/plugin-node-resolve"; | ||
import typescript from "rollup-plugin-typescript2"; | ||
import packageJson from "./package.json" assert { type: "json" }; | ||
|
||
export default { | ||
input: "index.ts", | ||
output: [ | ||
{ | ||
file: packageJson.module, | ||
format: "esm", | ||
sourcemap: true, | ||
}, | ||
], | ||
plugins: [typescript(), commonjs(), nodeResolve()], | ||
external: ["react", "@api.video/player-sdk"], | ||
}; |
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,11 +1,11 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES3", | ||
"lib": ["ES2015", "dom"], | ||
"outDir": "./dist", | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"declaration": true | ||
} | ||
} | ||
"compilerOptions": { | ||
"target": "ES6", | ||
"lib": ["ES2015", "dom"], | ||
"outDir": "./dist", | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"declaration": true | ||
} | ||
} |
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,30 +1,30 @@ | ||
const path = require('path'); | ||
const path = require("path"); | ||
|
||
module.exports = { | ||
entry: { | ||
sdk: ['core-js/stable/promise', 'url-polyfill', './index.ts'] | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.tsx?$/, | ||
use: 'ts-loader', | ||
exclude: /node_modules/, | ||
}, | ||
], | ||
}, | ||
resolve: { | ||
extensions: ['.ts', '.js'], | ||
}, | ||
output: { | ||
libraryTarget: 'umd', | ||
filename: 'index.js', | ||
globalObject: 'this' | ||
}, | ||
devServer: { | ||
port: 8082, | ||
static: { | ||
directory: path.join(__dirname, 'samples'), | ||
}, | ||
entry: { | ||
sdk: ["core-js/stable/promise", "url-polyfill", "./index.ts"], | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.tsx?$/, | ||
use: "ts-loader", | ||
exclude: /node_modules/, | ||
}, | ||
], | ||
}, | ||
resolve: { | ||
extensions: [".ts", ".js"], | ||
}, | ||
output: { | ||
libraryTarget: "umd", | ||
filename: "index.js", | ||
globalObject: "this", | ||
}, | ||
devServer: { | ||
port: 8082, | ||
static: { | ||
directory: path.join(__dirname, "samples"), | ||
}, | ||
}, | ||
}; |