akfun 5.1.2 → 5.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,6 @@ const templateList = {
6
6
  'react&ts': 'git@github.com:wibetter/akfun-react-ts-template.git',
7
7
  'library': 'git@github.com:wibetter/json-utils.git',
8
8
  'json-editor': 'git@github.com:wibetter/json-editor.git',
9
- 'json-schema-editor': 'git@github.com:wibetter/json-schema-editor.git',
10
9
  'pigNews': 'git@github.com:wibetter/pigNews.git',
11
10
  };
12
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akfun",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
4
4
  "description": "前端脚手架:支持Vue技术栈和react技术栈",
5
5
  "keywords": [
6
6
  "前端工程",
@@ -116,6 +116,7 @@
116
116
  "html-webpack-plugin": "^5.5.0",
117
117
  "http-proxy-middleware": "^2.0.2",
118
118
  "inquirer": "^8.2.0",
119
+ "rollup-plugin-jsx": "^1.0.3",
119
120
  "mini-css-extract-plugin": "^2.5.3",
120
121
  "open": "^8.4.0",
121
122
  "ora": "^4.0.4",
@@ -1,7 +1,7 @@
1
1
  // rollup.config.js
2
2
  const { babel } = require('@rollup/plugin-babel');
3
3
  const { nodeResolve } = require('@rollup/plugin-node-resolve'); // 支持node中的文件导入
4
- // const jsx = require('rollup-plugin-jsx'); // 用于处理jsx
4
+ const jsx = require('rollup-plugin-jsx'); // 用于处理jsx
5
5
  const typescript = require('@rollup/plugin-typescript'); // 支持ts
6
6
  const commonjs = require('@rollup/plugin-commonjs'); // 识别cmd模块
7
7
  const vue = require('rollup-plugin-vue');
@@ -74,7 +74,7 @@ module.exports = function (fileName, akfunConfig) {
74
74
  buildType === 'ts' ? typescript() : undefined,
75
75
  babel(babelConfig), // 备注,需要先babel()再commjs()
76
76
  // jsx( {factory: 'React.createElement'} ),
77
- buildType === 'ts' ? jsx({ factory: 'React.createElement' }) : undefined,
77
+ buildType === 'ts' ? undefined : jsx({ factory: 'React.createElement' }),
78
78
  vue(),
79
79
  commonjs(),
80
80
  postcss({