Improve @babel/runtime esm stability (#12883)
This commit is contained in:
10
test/runtime-integration/rollup/package.json
Normal file
10
test/runtime-integration/rollup/package.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "@babel-internal/runtime-integration-rollup",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@babel/runtime": "workspace:*",
|
||||
"@rollup/plugin-commonjs": "^17.1.0",
|
||||
"@rollup/plugin-node-resolve": "^11.2.0",
|
||||
"rollup": "^2.39.1"
|
||||
}
|
||||
}
|
||||
13
test/runtime-integration/rollup/rollup.absolute.config.js
Normal file
13
test/runtime-integration/rollup/rollup.absolute.config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import commonjs from "@rollup/plugin-commonjs";
|
||||
import nodeResolve from "@rollup/plugin-node-resolve";
|
||||
import path from "path";
|
||||
|
||||
export default {
|
||||
input: path.resolve(__dirname, "../src/absolute/main-esm.mjs"),
|
||||
plugins: [commonjs(), nodeResolve()],
|
||||
|
||||
output: {
|
||||
file: path.resolve(__dirname, "output-absolute.js"),
|
||||
format: "cjs",
|
||||
},
|
||||
};
|
||||
13
test/runtime-integration/rollup/rollup.config.js
Normal file
13
test/runtime-integration/rollup/rollup.config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import commonjs from "@rollup/plugin-commonjs";
|
||||
import nodeResolve from "@rollup/plugin-node-resolve";
|
||||
import path from "path";
|
||||
|
||||
export default {
|
||||
input: path.resolve(__dirname, "../src/main-esm.mjs"),
|
||||
plugins: [commonjs(), nodeResolve()],
|
||||
|
||||
output: {
|
||||
file: path.resolve(__dirname, "output.js"),
|
||||
format: "cjs",
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user