We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da58b4 commit eda0d7dCopy full SHA for eda0d7d
test/test.ts
@@ -2,10 +2,15 @@ import * as tools from '@accility/protoc-tools'
2
import * as gRPCWeb from '../dist/plugin'
3
4
tools.protoc({
5
- files: [ __dirname + '/main.proto' ],
6
- includeDirs: [ __dirname ],
7
- outDir: __dirname + '/generated',
8
- outOptions: [gRPCWeb({
9
- module: 'commonjs'
10
- })]
+ files: [__dirname + '/main.proto'],
+ includeDirs: [__dirname],
+ outDir: __dirname + '/generated',
+ outOptions: [
+ tools.generators.js({
+ outOptions: 'import_style=commonjs'
11
+ }),
12
+ gRPCWeb({
13
+ module: 'commonjs'
14
+ })
15
+ ]
16
})
0 commit comments