@goji/webpack-plugin
Advanced tools
Comparing version
@@ -127,2 +127,3 @@ "use strict"; | ||
name: 'scroll-view', | ||
isWrapped: true, | ||
props: { | ||
@@ -166,2 +167,6 @@ 'scroll-x': { | ||
}, | ||
'scroll-anchoring': { | ||
type: propTypes.boolean, | ||
value: false, | ||
}, | ||
}, | ||
@@ -172,2 +177,3 @@ events: ['scrolltoupper', 'scrolltolower', 'scroll'], | ||
name: 'swiper', | ||
isWrapped: true, | ||
props: { | ||
@@ -1232,5 +1238,5 @@ 'indicator-dots': { | ||
}, | ||
covers: { | ||
type: propTypes.array, | ||
}, | ||
// don't support `covers` | ||
// 1. covers is deprecated | ||
// 2. covers cause map lost uncontrolled data | ||
polyline: { | ||
@@ -1237,0 +1243,0 @@ type: propTypes.array, |
@@ -77,2 +77,3 @@ "use strict"; | ||
inlineChildrenRender: this.shouldInlineChildrenRender(), | ||
useWrappedComponent: this.useWrappedComponent(), | ||
}); | ||
@@ -110,2 +111,3 @@ } | ||
inlineChildrenRender, | ||
useWrappedComponent: this.useWrappedComponent(), | ||
}); | ||
@@ -129,3 +131,7 @@ }); | ||
yield this.renderTemplateToAsset(compilation, `${constants_1.BRIDGE_OUTPUT_PATH}/components/${component.name}.wxml`, `components/${component.name}.wxml.ejs`, {}); | ||
yield this.renderTemplateToAsset(compilation, `${constants_1.BRIDGE_OUTPUT_PATH}/components/${component.name}.json`, `components/${component.name}.json.ejs`, {}); | ||
yield this.renderTemplateToAsset(compilation, `${constants_1.BRIDGE_OUTPUT_PATH}/components/${component.name}.json`, `components/${component.name}.json.ejs`, { | ||
relativePathToBridge: '.', | ||
components: this.getWhitelistedComponents(), | ||
useWrappedComponent: this.useWrappedComponent(), | ||
}); | ||
yield this.renderTemplateToAsset(compilation, `${constants_1.BRIDGE_OUTPUT_PATH}/components/${component.name}.js`, `components/${component.name}.js.ejs`, {}); | ||
@@ -132,0 +138,0 @@ } |
@@ -125,2 +125,3 @@ // sort compnents to import `wx:elif` performance | ||
name: 'scroll-view', | ||
isWrapped: true, | ||
props: { | ||
@@ -164,2 +165,6 @@ 'scroll-x': { | ||
}, | ||
'scroll-anchoring': { | ||
type: propTypes.boolean, | ||
value: false, | ||
}, | ||
}, | ||
@@ -170,2 +175,3 @@ events: ['scrolltoupper', 'scrolltolower', 'scroll'], | ||
name: 'swiper', | ||
isWrapped: true, | ||
props: { | ||
@@ -1230,5 +1236,5 @@ 'indicator-dots': { | ||
}, | ||
covers: { | ||
type: propTypes.array, | ||
}, | ||
// don't support `covers` | ||
// 1. covers is deprecated | ||
// 2. covers cause map lost uncontrolled data | ||
polyline: { | ||
@@ -1235,0 +1241,0 @@ type: propTypes.array, |
@@ -75,2 +75,3 @@ import { __awaiter } from "tslib"; | ||
inlineChildrenRender: this.shouldInlineChildrenRender(), | ||
useWrappedComponent: this.useWrappedComponent(), | ||
}); | ||
@@ -108,2 +109,3 @@ } | ||
inlineChildrenRender, | ||
useWrappedComponent: this.useWrappedComponent(), | ||
}); | ||
@@ -127,3 +129,7 @@ }); | ||
yield this.renderTemplateToAsset(compilation, `${BRIDGE_OUTPUT_PATH}/components/${component.name}.wxml`, `components/${component.name}.wxml.ejs`, {}); | ||
yield this.renderTemplateToAsset(compilation, `${BRIDGE_OUTPUT_PATH}/components/${component.name}.json`, `components/${component.name}.json.ejs`, {}); | ||
yield this.renderTemplateToAsset(compilation, `${BRIDGE_OUTPUT_PATH}/components/${component.name}.json`, `components/${component.name}.json.ejs`, { | ||
relativePathToBridge: '.', | ||
components: this.getWhitelistedComponents(), | ||
useWrappedComponent: this.useWrappedComponent(), | ||
}); | ||
yield this.renderTemplateToAsset(compilation, `${BRIDGE_OUTPUT_PATH}/components/${component.name}.js`, `components/${component.name}.js.ejs`, {}); | ||
@@ -130,0 +136,0 @@ } |
{ | ||
"name": "@goji/webpack-plugin", | ||
"version": "0.5.6", | ||
"version": "0.5.7", | ||
"description": "Goji Webpack Plugin", | ||
@@ -38,3 +38,3 @@ "main": "dist/cjs/cjs.js", | ||
"@babel/plugin-proposal-optional-chaining": "^7.7.4", | ||
"@goji/core": "^0.5.6", | ||
"@goji/core": "^0.5.7", | ||
"@types/ejs": "^2.6.3", | ||
@@ -84,3 +84,3 @@ "@types/html-minifier": "^3.5.3", | ||
}, | ||
"gitHead": "d5710c4d70088217b9e0a9979c7069f090e0cedd" | ||
"gitHead": "e703f45f8a2c8e7da24a388382d3a8e5e56a8469" | ||
} |
@@ -158,2 +158,3 @@ // sort compnents to import `wx:elif` performance | ||
name: 'scroll-view', | ||
isWrapped: true, | ||
props: { | ||
@@ -197,2 +198,6 @@ 'scroll-x': { | ||
}, | ||
'scroll-anchoring': { | ||
type: propTypes.boolean, | ||
value: false, | ||
}, | ||
}, | ||
@@ -203,2 +208,3 @@ events: ['scrolltoupper', 'scrolltolower', 'scroll'], | ||
name: 'swiper', | ||
isWrapped: true, | ||
props: { | ||
@@ -1263,5 +1269,5 @@ 'indicator-dots': { | ||
}, | ||
covers: { | ||
type: propTypes.array, | ||
}, | ||
// don't support `covers` | ||
// 1. covers is deprecated | ||
// 2. covers cause map lost uncontrolled data | ||
polyline: { | ||
@@ -1268,0 +1274,0 @@ type: propTypes.array, |
@@ -98,2 +98,3 @@ import webpack from 'webpack'; | ||
inlineChildrenRender: this.shouldInlineChildrenRender(), | ||
useWrappedComponent: this.useWrappedComponent(), | ||
}, | ||
@@ -156,2 +157,3 @@ ); | ||
inlineChildrenRender, | ||
useWrappedComponent: this.useWrappedComponent(), | ||
}, | ||
@@ -188,3 +190,7 @@ ); | ||
`components/${component.name}.json.ejs`, | ||
{}, | ||
{ | ||
relativePathToBridge: '.', | ||
components: this.getWhitelistedComponents(), | ||
useWrappedComponent: this.useWrappedComponent(), | ||
}, | ||
); | ||
@@ -191,0 +197,0 @@ await this.renderTemplateToAsset( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
341833
3.35%157
4.67%7135
0.51%