1.0.3 • Published 11 months ago

rbxts-transformer-private v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

rbxts-transformer-private

Adds a custom prefix to the private fields/methods in the compiled code for the sake of usage in Luau.

class foo {
	private bar = 5;
	private buzz() {}

	private fuzz() {
		this.bar = 6;
		this.buzz();
	}
}
-- Compiled with roblox-ts v2.3.0
local foo
do
	foo = setmetatable({}, {
		__tostring = function()
			return "foo"
		end,
	})
	foo.__index = foo
	function foo.new(...)
		local self = setmetatable({}, foo)
		return self:constructor(...) or self
	end
	function foo:constructor()
		self._bar = 5
	end
	function foo:_buzz()
	end
	function foo:_fuzz()
		self._bar = 6
		self:_buzz()
	end
end

Configuration:

  • customPrefix - a custom prefix instead of an underscore.
  • includeInternal - transforms functions and fields marked as @internal.
1.0.2

11 months ago

1.0.3

11 months ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.54

2 years ago

0.0.53

2 years ago

0.0.52

2 years ago

0.0.51

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago