mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #869 from MrTimscampi/where-no-module-has-gone-before
Start conversion of modules to ES6
This commit is contained in:
commit
43660fb211
5 changed files with 747 additions and 598 deletions
|
@ -3,6 +3,12 @@ env:
|
||||||
browser: true
|
browser: true
|
||||||
amd: true
|
amd: true
|
||||||
|
|
||||||
|
parserOptions:
|
||||||
|
ecmaVersion: 6
|
||||||
|
sourceType: module
|
||||||
|
ecmaFeatures:
|
||||||
|
impliedStrict: true
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
# New browser globals
|
# New browser globals
|
||||||
DataView: readonly
|
DataView: readonly
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.8.6",
|
"@babel/core": "^7.8.6",
|
||||||
"@babel/polyfill": "^7.8.7",
|
"@babel/polyfill": "^7.8.7",
|
||||||
|
"@babel/plugin-transform-modules-amd": "^7.8.3",
|
||||||
"@babel/preset-env": "^7.8.6",
|
"@babel/preset-env": "^7.8.6",
|
||||||
"autoprefixer": "^9.7.4",
|
"autoprefixer": "^9.7.4",
|
||||||
"babel-loader": "^8.0.6",
|
"babel-loader": "^8.0.6",
|
||||||
|
@ -69,9 +70,11 @@
|
||||||
"whatwg-fetch": "^3.0.0"
|
"whatwg-fetch": "^3.0.0"
|
||||||
},
|
},
|
||||||
"babel": {
|
"babel": {
|
||||||
"presets": [
|
"presets": ["@babel/preset-env"],
|
||||||
"@babel/preset-env"
|
"overrides": [{
|
||||||
]
|
"test": ["src/components/cardbuilder/cardBuilder.js"],
|
||||||
|
"plugins": ["@babel/plugin-transform-modules-amd"]
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 2 Firefox versions",
|
"last 2 Firefox versions",
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -6,12 +6,12 @@ const CopyPlugin = require("copy-webpack-plugin");
|
||||||
const Assets = [
|
const Assets = [
|
||||||
"alameda/alameda.js",
|
"alameda/alameda.js",
|
||||||
"native-promise-only/npo.js",
|
"native-promise-only/npo.js",
|
||||||
"libass-wasm/dist/subtitles-octopus-worker.js",
|
"libass-wasm/dist/js/subtitles-octopus-worker.js",
|
||||||
"libass-wasm/dist/subtitles-octopus-worker.data",
|
"libass-wasm/dist/js/subtitles-octopus-worker.data",
|
||||||
"libass-wasm/dist/subtitles-octopus-worker.wasm",
|
"libass-wasm/dist/js/subtitles-octopus-worker.wasm",
|
||||||
"libass-wasm/dist/subtitles-octopus-worker-legacy.js",
|
"libass-wasm/dist/js/subtitles-octopus-worker-legacy.js",
|
||||||
"libass-wasm/dist/subtitles-octopus-worker-legacy.data",
|
"libass-wasm/dist/js/subtitles-octopus-worker-legacy.data",
|
||||||
"libass-wasm/dist/subtitles-octopus-worker-legacy.js.mem"
|
"libass-wasm/dist/js/subtitles-octopus-worker-legacy.js.mem"
|
||||||
];
|
];
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue