Trailing commas!

This commit is contained in:
Jordan Eldredge 2019-03-19 06:55:24 -07:00
parent c6a70451c9
commit bd5fa82c99
132 changed files with 831 additions and 828 deletions

View file

@ -2,5 +2,5 @@ module.exports = {
displayName: "integration-test",
rootDir: "../",
preset: "jest-puppeteer",
testRegex: "\\.integration-test\\.js$"
testRegex: "\\.integration-test\\.js$",
};

View file

@ -3,15 +3,15 @@ module.exports = {
rootDir: "../",
testRegex: "\\.test\\.(js|ts|tsx)$",
globals: {
SENTRY_DSN: null
SENTRY_DSN: null,
},
moduleFileExtensions: ["js", "tsx", "ts"],
moduleNameMapper: {
"\\.css$": "<rootDir>/js/__mocks__/styleMock.js",
"\\.wsz$": "<rootDir>/js/__mocks__/fileMock.js",
"\\.mp3$": "<rootDir>/js/__mocks__/fileMock.js"
"\\.mp3$": "<rootDir>/js/__mocks__/fileMock.js",
},
transform: {
"^.+\\.(js|ts|tsx)$": "babel-jest"
}
"^.+\\.(js|ts|tsx)$": "babel-jest",
},
};

View file

@ -6,7 +6,7 @@ module.exports = {
devtool: "source-map",
mode: "production",
resolve: {
extensions: [".js", ".ts", ".tsx"]
extensions: [".js", ".ts", ".tsx"],
},
module: {
rules: [
@ -21,11 +21,11 @@ module.exports = {
options: {
plugins: [
require("cssnano"),
require("../scripts/postcss-optimize-data-uri-pngs")
]
}
}
]
require("../scripts/postcss-optimize-data-uri-pngs"),
],
},
},
],
},
{
test: /\.(js|ts|tsx)$/,
@ -33,36 +33,36 @@ module.exports = {
use: {
loader: "babel-loader",
options: {
envName: "library"
}
}
}
envName: "library",
},
},
},
],
noParse: [/jszip\.js$/]
noParse: [/jszip\.js$/],
},
plugins: [
new BundleAnalyzerPlugin({
analyzerMode: "static",
reportFilename: "library-report.html",
openAnalyzer: false
openAnalyzer: false,
}),
// Also generate non-minified bundles.
new UnminifiedWebpackPlugin()
new UnminifiedWebpackPlugin(),
],
performance: {
// We do some crazy shit okay! Don't judge!
maxEntrypointSize: 9000000,
maxAssetSize: 9000000
maxAssetSize: 9000000,
},
entry: {
"bundle.min": "./js/webamp.js",
"lazy-bundle.min": "./js/webampLazy.tsx"
"lazy-bundle.min": "./js/webampLazy.tsx",
},
output: {
path: path.resolve(__dirname, "../built"),
filename: "webamp.[name].js",
library: "Webamp",
libraryTarget: "umd",
libraryExport: "default"
}
libraryExport: "default",
},
};