-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcf71bd
commit 05c22d8
Showing
8 changed files
with
28 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,29 @@ | ||
import { nodeResolve } from '@rollup/plugin-node-resolve'; | ||
import terser from '@rollup/plugin-terser'; | ||
import bundleSize from 'rollup-plugin-bundle-size'; | ||
|
||
export default { | ||
input: 'src/index.js', | ||
output: [ | ||
{ | ||
file: 'dist/index.bundle.js', | ||
format: 'iife', | ||
name: 'idnaUts46', | ||
plugins: [terser(), bundleSize()], | ||
}, | ||
{ | ||
file: 'dist/index.cjs', | ||
format: 'cjs', | ||
plugins: [terser(), bundleSize()], | ||
}, | ||
{ | ||
file: 'dist/index.mjs', | ||
format: 'es', | ||
plugins: [terser(), bundleSize()], | ||
}, | ||
], | ||
external: ['punycode'], | ||
plugins: [ | ||
// needed to resolve punycode from import not node's builtin | ||
nodeResolve({ preferBuiltins: false }), | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.