Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Add support for native es modules in node
Browse files Browse the repository at this point in the history
Closes #76 and #71
  • Loading branch information
TrySound committed May 24, 2020
1 parent 0d3ca60 commit 820201d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
"name": "rollup-plugin-terser",
"version": "6.0.1",
"description": "Rollup plugin to minify generated es bundle",
"type": "commonjs",
"main": "rollup-plugin-terser.js",
"types": "rollup-plugin-terser.d.ts",
"exports": {
"require": "./rollup-plugin-terser.js",
"import": "./rollup-plugin-terser.mjs"
},
"files": [
"rollup-plugin-terser.js",
"rollup-plugin-terser.mjs",
"rollup-plugin-terser.d.ts",
"transform.js"
],
Expand Down
3 changes: 3 additions & 0 deletions rollup-plugin-terser.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import terserModule from "./rollup-plugin-terser.js";

export const terser = terserModule.terser;

0 comments on commit 820201d

Please sign in to comment.