mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Trailing commas!
This commit is contained in:
parent
c6a70451c9
commit
bd5fa82c99
132 changed files with 831 additions and 828 deletions
|
|
@ -2,5 +2,5 @@ module.exports = {
|
|||
displayName: "integration-test",
|
||||
rootDir: "../",
|
||||
preset: "jest-puppeteer",
|
||||
testRegex: "\\.integration-test\\.js$"
|
||||
testRegex: "\\.integration-test\\.js$",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue