From b447cfc590f1b3c78a6901e4ab12e4e69279c7d7 Mon Sep 17 00:00:00 2001 From: Benjamin CAVY Date: Tue, 12 Jul 2022 12:30:14 +0200 Subject: [PATCH] chore: package esm only --- package.json | 1 - rollup.config.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index ccac806..90226bc 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "description": "Build react safe forms as fast as possible", "version": "1.2.6", "main": "lib/index.js", - "module": "lib/esm/index.js", "types": "lib/index.d.ts", "source": "src/index.ts", "author": "MAIF team", diff --git a/rollup.config.js b/rollup.config.js index d84ac01..f6de6d1 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -15,8 +15,7 @@ const isYalcActivated = process.env.YALC === 'activated' export default [{ input: pkg.source, output: [ - { file: pkg.main, format: 'cjs' }, - { file: pkg.module, format: 'esm' } + { file: pkg.main, format: 'esm' } ], plugins: [ // visualizer(),