diff --git a/packages/rollup/package.json b/packages/rollup/package.json index 71934d15..2c9ea66c 100644 --- a/packages/rollup/package.json +++ b/packages/rollup/package.json @@ -36,6 +36,7 @@ "@babel/plugin-transform-react-constant-elements": "^7.14.5", "@babel/preset-env": "^7.15.6", "@babel/preset-react": "^7.14.5", + "@babel/preset-typescript": "^7.16.0", "@svgr/core": "^6.1.1", "@svgr/plugin-jsx": "^6.1.0", "@svgr/plugin-svgo": "^6.1.0", diff --git a/packages/rollup/src/index.ts b/packages/rollup/src/index.ts index 753f5ee3..fe90c78e 100644 --- a/packages/rollup/src/index.ts +++ b/packages/rollup/src/index.ts @@ -72,7 +72,7 @@ const plugin: PluginImpl = (options = {}) => { if (!result?.code) { throw new Error(`Error while transforming using Babel`) } - return { code: result.code } + return { code: result.code, map: null } } return { @@ -84,6 +84,7 @@ const plugin: PluginImpl = (options = {}) => { body: [], }, code: jsCode, + map: null } }, }