Skip to content

Commit e51cfea

Browse files
author
Luca Forstner
authored
build(deno): Treeshake deno package (#9260)
1 parent 6ab1068 commit e51cfea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/deno/rollup.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
// @ts-check
12
import nodeResolve from '@rollup/plugin-node-resolve';
23
import commonjs from '@rollup/plugin-commonjs';
34
import sucrase from '@rollup/plugin-sucrase';
5+
import { defineConfig } from 'rollup';
46

5-
export default {
7+
export default defineConfig({
68
input: ['src/index.ts'],
9+
treeshake: 'smallest',
710
output: {
811
dir: 'build',
912
sourcemap: true,
@@ -21,4 +24,4 @@ export default {
2124
commonjs(),
2225
sucrase({ transforms: ['typescript'] }),
2326
],
24-
};
27+
});

0 commit comments

Comments
 (0)