pulumi/pkg/codegen/testing/test
Anton Tayanovskyy 9597386a89
[codegen/node] Implement support for lazy-loaded Node modules (#10538)
* First experiment: export a type directly, but still use require.

* WIP: Add lazy-loading to utils, build export list.

* Untested: add submodule export generation with lazy-loading

* WIP: Syntactically valid submodule export

* Add tests, finish submodExportList generation

* Clean up comments

* Fix compilation error

* WIP

* Lazy-load class modules and re-export them

* Revert original approach

* Handle the class-with-method case eagerly

* Accept codegen

* Fix typo in method namespace condition

* Fix lazyLoadProperty to call require() in source context

* Support lazy-loading function modules

* Revert useles diff, PR feedback

* Remove extra ws diff

* Remove unused

* Accept codegen output

* Function-only files still need utilites import

* Optimize for not loading enums all the time

* Improve further

* Accept codegen

* Implement flags to control lazy-loading

* Accept codegen tests

* Illustrate on azure-native-nested-types

* Test lazy-loaded functions on output-funcs

* Start factoring out

* More cases

* More unit tests

* Reduce flag surface

* Separate fileInfo structs into its own module

* Merge lazyloads

* Accept codegen changes

* CHANGELOG

* Lint

* Revert caching require()

* Accept codegen

Co-authored-by: Robbie McKinstry <robbiemckinstry@Robbies-MacBook-Pro.local>
Co-authored-by: Robbie McKinstry <robbiemckinstry@macbook-pro.mynetworksettings.com>
2022-09-01 18:42:44 -04:00
..
testdata [codegen/node] Implement support for lazy-loaded Node modules (#10538) 2022-09-01 18:42:44 -04:00
helpers.go Consistently disable HTML escaping in JSON output (#10440) 2022-08-19 13:27:34 +01:00
program_driver.go Fix StackReference code gen (#10419) 2022-08-19 10:27:05 -07:00
sdk_driver.go [go/codegen] Fix type collisions where InputType + "Map" clashes with resource type called "InputTypeMap" (#10551) 2022-08-31 22:35:26 +02:00
type_driver.go Correctly import plain types (#9430) 2022-04-21 11:29:30 +02:00