Skip to content

Commit

Permalink
chore: add type importHelpers
Browse files Browse the repository at this point in the history
  • Loading branch information
meixg committed Sep 14, 2021
1 parent 42482d0 commit 9d27011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
new SanPhpLoaderPlugin({
output: {
path: 'php',
// importHelpers: 'san-ssr/dist/runtime/index'
},
runtimeHelper: {
namespace: 'san\\helperNameSpace',
Expand Down
1 change: 1 addition & 0 deletions src/types/san-ssr.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export interface sanSsrOptions {
* 只在服务端渲染,客户端无法反解,可用来减少渲染标记
*/
ssrOnly?: boolean | ((filePath: string) => boolean);
importHelpers?: string;
}

0 comments on commit 9d27011

Please sign in to comment.