Skip to content

Commit d3a7db9

Browse files
dakerfloryst
authored andcommitted
fix(ESM): add type module to package.json
fixes #3080
1 parent cc07c84 commit d3a7db9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ export default {
251251
transform(content) {
252252
const pkg = JSON.parse(content);
253253
pkg.name = '@kitware/vtk.js';
254+
pkg.type = 'module';
254255
pkg.main = './index.js';
255256
pkg.module = './index.js';
256257
pkg.types = './index.d.ts';

0 commit comments

Comments
 (0)