Fix for #2 #9

Open
aabluedragon wants to merge 3 commits from aabluedragon/fix-esm:master into master

@ -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")
]
});
}

@ -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"
}
}

Loading…
Cancel
Save