diff --git a/index.js b/index.js index c421292..2bfe19a 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,9 @@ function transpile(code) { return babelCore.transformSync(code, { plugins: [ require.resolve("@babel/plugin-proposal-export-namespace-from"), - require.resolve("@babel/plugin-transform-modules-commonjs") + require.resolve("@babel/plugin-transform-modules-commonjs"), + require.resolve("@babel/plugin-transform-runtime"), + require.resolve("babel-plugin-transform-import-meta") ] }); } diff --git a/package.json b/package.json index aeb8ec5..c959148 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,9 @@ "dependencies": { "@babel/core": "^7.14.6", "@babel/plugin-proposal-export-namespace-from": "^7.14.5", - "@babel/plugin-transform-modules-commonjs": "^7.14.5" + "@babel/plugin-transform-modules-commonjs": "^7.14.5", + "@babel/plugin-transform-runtime": "^7.19.6", + "@babel/runtime":"^7.20.7", + "babel-plugin-transform-import-meta": "^2.2.0" } }