@ts-liveserver/build
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Build to ES6 modules

NPX

npx @ts-liveserver/build --directory=tmp/output ./App.ts

Installed

npm install @ts-liveserver/build --directory=tmp/output ./App.ts
ts-liveserver-build

Note about internal NodeJS modules

If one of your dependencies are using internal NodeJS-module, you need to add a conterpart that works in browser that will be resolved by the server. Simply add some of the dependencies to your project in order for this to work:

{
	"dependencies": {
		"events": "^3.3.0",
		"stream": "^0.0.2",
		"buffer": "^6.0.3",
		"util": "^0.12.3",
		"browserify-zlib": "^0.2.0",
		"assert": "^2.0.0"
	}
}

Readme

Keywords

none

Package Sidebar

Install

npm i @ts-liveserver/build

Weekly Downloads

2

Version

2.0.0

License

ISC

Unpacked Size

13.6 kB

Total Files

19

Last publish

Collaborators

  • davidortner
  • atyn