Skip to content

Commit

Permalink
Build with babel (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrins authored Feb 3, 2023
1 parent cde0cfe commit 13851a7
Show file tree
Hide file tree
Showing 8 changed files with 1,652 additions and 1,555 deletions.
14 changes: 12 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import { rollup } from "npm:rollup";
import { minify } from "npm:terser";
import { rollup } from "npm:[email protected]";
import { minify } from "npm:[email protected]";
import { babel } from "npm:@rollup/[email protected]";
// This import is required for presetEnv to work:
import _ from "https://esm.sh/@babel/[email protected]";
import babelPresetEnv from "https://esm.sh/@babel/[email protected]";

let bundle = await rollup({
input: "mod.js",
plugins: [
babel({
babelHelpers: "bundled",
presets: [[babelPresetEnv]],
}),
],
});

// Write legacy UMD files to tinycolor.js and dist/tinycolor-min.js.
Expand Down
909 changes: 694 additions & 215 deletions deno.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tinycolor-min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 13851a7

Please sign in to comment.