diff --git a/__tests__/index.js b/__tests__/index.js index abd631d..ab80047 100644 --- a/__tests__/index.js +++ b/__tests__/index.js @@ -3,6 +3,10 @@ import buildPreset from "../src" const options = buildPreset(null, { modules: false, target: { browsers: "ie 11" } }) +// Keep formatting for tests (to keep output/diffs readable) +options.minified = false +options.compact = false + test("ES2015: Classes", () => { expect(transform(`class Component{ main() { } }`, options).code).toMatchSnapshot() }) diff --git a/src/index.js b/src/index.js index 4e872e7..13a279e 100644 --- a/src/index.js +++ b/src/index.js @@ -139,6 +139,15 @@ export default function buildPreset(context, opts = {}) // Assemble final config return { + // Just some basic minification + comments: false, + compact: true, + minified: true, + + // Enable source maps by default + sourceMaps: true, + + // And all the previously built lists of presets and plugins presets, plugins }