File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Sources/BridgeJSCommandPlugin Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11# BridgeJS
22
3+ > Important: This feature is still experimental, and the API may change frequently. Use at your own risk
4+ > with ` JAVASCRIPTKIT_EXPERIMENTAL_BRIDGEJS=1 ` environment variable.
5+
36> Note: This documentation is intended for JavaScriptKit developers, not JavaScriptKit users.
47
58## Overview
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ struct BridgeJSCommandPlugin: CommandPlugin {
2727 Generated code will be placed in the target's 'Generated' directory.
2828
2929 OPTIONS:
30- --target <target> Specify target(s) to generate bridge code for. If omitted,
30+ --target <target> Specify target(s) to generate bridge code for. If omitted,
3131 generates for all targets with JavaScriptKit dependency.
3232 """
3333 }
Original file line number Diff line number Diff line change @@ -564,6 +564,11 @@ struct PackagingPlanner {
564564 packageInputs. append ( packageJsonTask)
565565
566566 if exportedSkeletons. count > 0 || importedSkeletons. count > 0 {
567+ if ProcessInfo . processInfo. environment [ " JAVASCRIPTKIT_EXPERIMENTAL_BRIDGEJS " ] == nil {
568+ fatalError (
569+ " BridgeJS is still an experimental feature. Set the environment variable JAVASCRIPTKIT_EXPERIMENTAL_BRIDGEJS=1 to enable. "
570+ )
571+ }
567572 let bridgeJs = outputDir. appending ( path: " bridge.js " )
568573 let bridgeDts = outputDir. appending ( path: " bridge.d.ts " )
569574 packageInputs. append (
You can’t perform that action at this time.
0 commit comments