Skip to content

Commit

Permalink
优化es模块
Browse files Browse the repository at this point in the history
  • Loading branch information
masx200 committed Sep 21, 2021
1 parent e155a71 commit 243ef57
Show file tree
Hide file tree
Showing 4 changed files with 679 additions and 680 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"access": "public"
},
"name": "@masx200/jsfuck-and-hieroglyphy-decoder-and-encoder",
"version": "2.0.7",
"version": "2.0.8",
"module": "dist/index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import { defineConfig } from "rollup";
import { resolve } from "path";
import commonjs from "@rollup/plugin-commonjs";
import noderesolve from "@rollup/plugin-node-resolve";
import { terser } from "rollup-plugin-terser";
import ts from "rollup-plugin-ts";
import babel from "@rollup/plugin-babel";
export default defineConfig({
plugins: [
noderesolve(),
commonjs(),
ts({}),
babel({
babelHelpers: "bundled",
configFile: resolve(__dirname, "babel.config.js"),
}),
terser({
compress: { drop_console: true, drop_debugger: true },
output: { beautify: true, comments: false },
Expand Down
Loading

1 comment on commit 243ef57

@vercel
Copy link

@vercel vercel bot commented on 243ef57 Sep 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.