Skip to content

Commit e46291e

Browse files
committed
chore: remove esm build and rollup-plugin-copy
1 parent 783ff13 commit e46291e

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"license": "Apache-2.0",
2020
"author": "IOHK",
2121
"main": "dist/index.js",
22-
"module": "dist/index.esm.js",
2322
"typings": "dist/index.d.ts",
2423
"scripts": {
2524
"build": "yarn build:icons && rollup -c rollup.config.js",

rollup.config.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import image from '@rollup/plugin-image';
33
import typescript from '@rollup/plugin-typescript';
44
import svgr from '@svgr/rollup';
55
import { vanillaExtractPlugin } from '@vanilla-extract/rollup-plugin';
6-
import copy from 'rollup-plugin-copy';
76
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
87

98
import packageJson from './package.json';
@@ -23,20 +22,12 @@ export default () => ({
2322
vanillaExtractPlugin({
2423
identifiers: 'short',
2524
}),
26-
copy({
27-
targets: [{ src: 'src/assets/icons/*', dest: 'dist/assets/icons' }],
28-
}),
2925
],
3026
output: [
3127
{
3228
file: packageJson.main,
3329
format: 'cjs',
34-
sourcemap: true,
35-
},
36-
{
37-
file: packageJson.module,
38-
format: 'esm',
39-
sourcemap: true,
30+
sourcemap: false,
4031
},
4132
],
4233
external: [/node_modules/],

0 commit comments

Comments
 (0)