mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
2cf09d6301
This fixes incompatibilites between Karma and Babel with regard to source maps. Babel rewrites our code on-the-fly in the testing environment so that we can run ES6 code and tests on older platforms. When Babel does this, it creates inline source maps which map the modified code back to the original code. Previously, the karma-source-map-support Karma framework was using these inline source maps to map stack traces back to the original code. This framework, however, uses a V8-specific hook to modify Error objects, so this only works on Chrome and Opera. But it turns out that Karma itself already supports source maps for formatting errors. For some reason, though, a third-party module is necessary to connect the dots and make Karma aware of Babel's inline source maps. For this, we are now using the karma-sourcemap-loader Karma preprocessor. We now have meaningful stack traces on all platforms. Change-Id: If6033334bb1afb35020f17ae443d6e2192ea5d08
67 lines
1.9 KiB
JSON
67 lines
1.9 KiB
JSON
{
|
|
"name": "shaka-player",
|
|
"description": "DASH/EME video player library",
|
|
"version": "2.5.0",
|
|
"homepage": "https://github.com/google/shaka-player",
|
|
"author": "Google",
|
|
"maintainers": [
|
|
{
|
|
"name": "Joey Parrish",
|
|
"email": "joeyparrish@google.com"
|
|
}
|
|
],
|
|
"devDependencies": {
|
|
"awesomplete": "^1.1.4",
|
|
"babel-core": "^6.26.3",
|
|
"babel-plugin-istanbul": "^4.1.6",
|
|
"babel-polyfill": "^6.26.0",
|
|
"babel-preset-env": "^1.7.0",
|
|
"cajon": "^0.4.4",
|
|
"dialog-polyfill": "^0.5.0",
|
|
"es6-promise-polyfill": "^1.2.0",
|
|
"eslint": "^5.16.0",
|
|
"eslint-config-google": "^0.13.0",
|
|
"esprima": "^4.0.1",
|
|
"htmlhint": "^0.11.0",
|
|
"jasmine-ajax": "^3.3.1",
|
|
"jasmine-core": "^2.8.0",
|
|
"jsdoc": "github:joeyparrish/jsdoc#45c271fa",
|
|
"karma": "^4.1.0",
|
|
"karma-babel-preprocessor": "^7.0.0",
|
|
"karma-chrome-launcher": "^2.2.0",
|
|
"karma-coverage": "^1.1.2",
|
|
"karma-edge-launcher": "^0.4.2",
|
|
"karma-firefox-launcher": "^1.1.0",
|
|
"karma-ie-launcher": "^1.0.0",
|
|
"karma-jasmine": "^1.1.0",
|
|
"karma-jasmine-ajax": "^0.1.13",
|
|
"karma-opera-launcher": "^1.0.0",
|
|
"karma-safari-launcher": "^1.0.0",
|
|
"karma-sourcemap-loader": "^0.3.7",
|
|
"karma-spec-reporter": "0.0.32",
|
|
"karma-webdriver-launcher": "^1.0.5",
|
|
"less": "^3.9.0",
|
|
"less-plugin-clean-css": "^1.5.1",
|
|
"material-design-lite": "^1.3.0",
|
|
"mux.js": "^5.1.3",
|
|
"promise-mock": "^2.1.0",
|
|
"rimraf": "^2.6.3",
|
|
"sprintf-js": "^1.1.2",
|
|
"tippy.js": "^4.3.1",
|
|
"wd": "^1.11.2",
|
|
"which": "^1.3.1"
|
|
},
|
|
"main": "dist/shaka-player.compiled.js",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/google/shaka-player.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/google/shaka-player/issues"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"scripts": {
|
|
"prepublishOnly": "python build/checkversion.py && python build/all.py --force"
|
|
}
|
|
}
|