* fix: add file extention when the absolute path to the runtime files are used (#12824) the es module imports need the file extention (e.g. import "@babel/runtime/helpers/jsx.js", Or the filenames being listed in the package.json's subpath exports (e.g. "import "@babel/runtime/helpers/jsx" + pkg: "./helpers/jsx": "./helpers/jsx.js"). when the user passes a path via `absoluteRuntime` then the rendered require staemnts is not the module name + subpath which will be resolved via pkg.json but rather the absolute path to the file. for this case, add the file extention / index.js to prevent bundlers from raising a warning. * Update deps * Fix imports resolution * Update fixtures (Windows) Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
51 lines
1.7 KiB
JSON
51 lines
1.7 KiB
JSON
{
|
|
"name": "@babel/plugin-transform-runtime",
|
|
"version": "7.16.0",
|
|
"description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/babel/babel.git",
|
|
"directory": "packages/babel-plugin-transform-runtime"
|
|
},
|
|
"license": "MIT",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"main": "./lib/index.js",
|
|
"keywords": [
|
|
"babel-plugin"
|
|
],
|
|
"browser": {
|
|
"./lib/get-runtime-path/index.js": "./lib/get-runtime-path/browser.js",
|
|
"./src/get-runtime-path/index.ts": "./src/get-runtime-path/browser.ts"
|
|
},
|
|
"dependencies": {
|
|
"@babel/helper-module-imports": "workspace:^",
|
|
"@babel/helper-plugin-utils": "workspace:^",
|
|
"babel-plugin-polyfill-corejs2": "^0.3.0",
|
|
"babel-plugin-polyfill-corejs3": "^0.4.0",
|
|
"babel-plugin-polyfill-regenerator": "^0.3.0",
|
|
"semver": "condition:BABEL_8_BREAKING ? ^7.3.4 : ^6.3.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@babel/core": "^7.0.0-0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "workspace:^",
|
|
"@babel/helper-plugin-test-runner": "workspace:^",
|
|
"@babel/helpers": "workspace:^",
|
|
"@babel/plugin-transform-typeof-symbol": "workspace:^",
|
|
"@babel/preset-env": "workspace:^",
|
|
"@babel/runtime": "workspace:^",
|
|
"@babel/runtime-corejs3": "workspace:^",
|
|
"@babel/template": "workspace:^",
|
|
"@babel/types": "workspace:^",
|
|
"make-dir": "condition:BABEL_8_BREAKING ? : ^2.1.0"
|
|
},
|
|
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-runtime",
|
|
"engines": {
|
|
"node": ">=6.9.0"
|
|
},
|
|
"author": "The Babel Team (https://babel.dev/team)"
|
|
}
|