Skip to content

Commit

Permalink
feat(build): remove umd bundle
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The `UMD` bundle has been removed
  • Loading branch information
RealShadowNova committed Sep 17, 2022
1 parent f528e9d commit 16324f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.mjs",
"browser": "dist/index.global.js",
"unpkg": "dist/index.global.js",
"types": "dist/index.d.ts",
"exports": {
"import": "./dist/index.mjs",
Expand Down
3 changes: 1 addition & 2 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ export default defineConfig({
clean: true,
dts: false,
entry: ['src/index.ts'],
format: ['esm', 'cjs', 'iife'],
format: ['esm', 'cjs'],
minify: false,
skipNodeModulesBundle: true,
sourcemap: true,
target: 'es2021',
tsconfig: relative(__dirname, resolve(process.cwd(), 'src', 'tsconfig.json')),
keepNames: true,
globalName: 'PropertyHelpers',
esbuildOptions(options, context) {
if (context.format === 'cjs') {
options.banner = {
Expand Down

0 comments on commit 16324f3

Please sign in to comment.