mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
feat: support UMD packageing for react-renderer
This commit is contained in:
parent
36caf0f189
commit
982d0d676b
28
packages/react-renderer/build.cloud.json
Normal file
28
packages/react-renderer/build.cloud.json
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"entry": {
|
||||
"react-renderer": "src/index"
|
||||
},
|
||||
"sourceMap": true,
|
||||
"library": "AliLowCodeReactRenderer",
|
||||
"libraryTarget": "umd",
|
||||
"externals": {
|
||||
"react": "var window.React",
|
||||
"react-dom": "var window.ReactDOM",
|
||||
"prop-types": "var window.PropTypes",
|
||||
"@alifd/next": "var Next",
|
||||
"moment": "var window.moment"
|
||||
},
|
||||
"polyfill": false,
|
||||
"outputDir": "dist",
|
||||
"vendor": false,
|
||||
"ignoreHtmlTemplate": true,
|
||||
"plugins": [
|
||||
"build-plugin-react-app",
|
||||
["build-plugin-fusion", {
|
||||
"externalNext": "umd"
|
||||
}],
|
||||
["build-plugin-moment-locales", {
|
||||
"locales": ["zh-cn"]
|
||||
}]
|
||||
]
|
||||
}
|
||||
@ -11,7 +11,8 @@
|
||||
"scripts": {
|
||||
"test": "build-scripts test --config build.test.json",
|
||||
"start": "build-scripts start",
|
||||
"build": "build-scripts build --skip-demo"
|
||||
"build": "build-scripts build --skip-demo",
|
||||
"cloud-build": "NODE_OPTIONS=--max_old_space_size=8192 build-scripts build --config build.cloud.json"
|
||||
},
|
||||
"keywords": [
|
||||
"lowcode",
|
||||
@ -28,6 +29,7 @@
|
||||
"build-plugin-component": "^0.2.10",
|
||||
"build-plugin-fusion": "^0.1.0",
|
||||
"build-plugin-moment-locales": "^0.1.0",
|
||||
"build-plugin-react-app": "^2.2.0",
|
||||
"react": "^16.4.1",
|
||||
"react-dom": "^16.4.1",
|
||||
"react-test-renderer": "^16"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user