diff --git a/rollup.config.js b/rollup.config.js index 5f58c65efcd..45379e7f05d 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -251,6 +251,7 @@ export default { transform(content) { const pkg = JSON.parse(content); pkg.name = '@kitware/vtk.js'; + pkg.type = 'module'; pkg.main = './index.js'; pkg.module = './index.js'; pkg.types = './index.d.ts';