* es2015 bundle with dependencies via npm script build:es:bundle * es2015 bundle without dependencies via npm script build:es:bundle * jest dependency for test:artifact * migrate babel.config.json to babel.config.js and maintain env support for commonjs and es2015 * remove polyfill * fix es syntax: replace module.exports with export * fix es syntax: remove .jsx extension inside import
29 lines
414 B
JavaScript
29 lines
414 B
JavaScript
/**
|
|
* @prettier
|
|
*/
|
|
|
|
import configBuilder from "./_config-builder"
|
|
|
|
const result = configBuilder(
|
|
{
|
|
minimize: true,
|
|
mangle: true,
|
|
sourcemaps: true,
|
|
includeDependencies: false,
|
|
},
|
|
{
|
|
entry: {
|
|
"swagger-ui": [
|
|
// "./src/polyfills.js", // TODO: remove?
|
|
"./src/index.js",
|
|
],
|
|
},
|
|
|
|
output: {
|
|
library: "SwaggerUICore",
|
|
},
|
|
}
|
|
)
|
|
|
|
export default result
|