forked from daren.hsu/line_push
update
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
> Allow parsing of jsx
|
||||
|
||||
See our website [@babel/plugin-syntax-jsx](https://babeljs.io/docs/en/next/babel-plugin-syntax-jsx.html) for more information.
|
||||
See our website [@babel/plugin-syntax-jsx](https://babeljs.io/docs/en/babel-plugin-syntax-jsx) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
|
||||
+6
-2
@@ -13,11 +13,15 @@ var _default = (0, _helperPluginUtils.declare)(api => {
|
||||
name: "syntax-jsx",
|
||||
|
||||
manipulateOptions(opts, parserOpts) {
|
||||
if (parserOpts.plugins.some(p => (Array.isArray(p) ? p[0] : p) === "typescript")) {
|
||||
const {
|
||||
plugins
|
||||
} = parserOpts;
|
||||
|
||||
if (plugins.some(p => (Array.isArray(p) ? p[0] : p) === "typescript")) {
|
||||
return;
|
||||
}
|
||||
|
||||
parserOpts.plugins.push("jsx");
|
||||
plugins.push("jsx");
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
+26
-17
@@ -1,54 +1,62 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"@babel/plugin-syntax-jsx@7.10.4",
|
||||
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
|
||||
"@babel/plugin-syntax-jsx@7.18.6",
|
||||
"/home/node/nuxt"
|
||||
]
|
||||
],
|
||||
"_from": "@babel/plugin-syntax-jsx@7.10.4",
|
||||
"_id": "@babel/plugin-syntax-jsx@7.10.4",
|
||||
"_from": "@babel/plugin-syntax-jsx@7.18.6",
|
||||
"_id": "@babel/plugin-syntax-jsx@7.18.6",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-KCg9mio9jwiARCB7WAcQ7Y1q+qicILjoK8LP/VkPkEKaf5dkaZZK1EcTe91a3JJlZ3qy6L5s9X52boEYi8DM9g==",
|
||||
"_integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==",
|
||||
"_location": "/@babel/plugin-syntax-jsx",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "@babel/plugin-syntax-jsx@7.10.4",
|
||||
"raw": "@babel/plugin-syntax-jsx@7.18.6",
|
||||
"name": "@babel/plugin-syntax-jsx",
|
||||
"escapedName": "@babel%2fplugin-syntax-jsx",
|
||||
"scope": "@babel",
|
||||
"rawSpec": "7.10.4",
|
||||
"rawSpec": "7.18.6",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "7.10.4"
|
||||
"fetchSpec": "7.18.6"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@vue/babel-plugin-transform-vue-jsx",
|
||||
"/@vue/babel-sugar-composition-api-inject-h",
|
||||
"/@vue/babel-sugar-composition-api-render-instance",
|
||||
"/@vue/babel-sugar-functional-vue",
|
||||
"/@vue/babel-sugar-inject-h",
|
||||
"/@vue/babel-sugar-v-model",
|
||||
"/@vue/babel-sugar-v-on"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.10.4.tgz",
|
||||
"_spec": "7.10.4",
|
||||
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
|
||||
"_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz",
|
||||
"_spec": "7.18.6",
|
||||
"_where": "/home/node/nuxt",
|
||||
"author": {
|
||||
"name": "The Babel Team",
|
||||
"url": "https://babel.dev/team"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/babel/babel/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/helper-plugin-utils": "^7.10.4"
|
||||
"@babel/helper-plugin-utils": "^7.18.6"
|
||||
},
|
||||
"description": "Allow parsing of jsx",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.10.4"
|
||||
"@babel/core": "^7.18.6"
|
||||
},
|
||||
"gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df",
|
||||
"homepage": "https://github.com/babel/babel#readme",
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
},
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-plugin-syntax-jsx",
|
||||
"keywords": [
|
||||
"babel-plugin"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"main": "./lib/index.js",
|
||||
"name": "@babel/plugin-syntax-jsx",
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.0.0-0"
|
||||
@@ -61,5 +69,6 @@
|
||||
"url": "git+https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-plugin-syntax-jsx"
|
||||
},
|
||||
"version": "7.10.4"
|
||||
"type": "commonjs",
|
||||
"version": "7.18.6"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user