rollup-emscripten
rollup + emscripten library converting
Last updated 2 years ago by chpio .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rollup-emscripten 
SYNC missed versions from official npm registry.

rollup-emscripten

Uses rollup to bundle multiple modules then converts the ouput to the Emscripten library format.

Examples

import rollupEmscripten from 'rollup-emscripten';

rollupEmscripten({
	entry: './my-lib.js',
	localPrefix: 'myLib', // prefix for local symbols
	// ...other rollup options
}).then(result => result.write('output.js'));

with babel:

import rollupEmscripten from 'rollup-emscripten';
import rollupBabel from 'rollup-plugin-babel';

rollupEmscripten({
	entry: './my-lib.js',
	localPrefix: 'myLib', // prefix for local symbols
	plugins: [
		rollupBabel({
			babelrc: false,
			presets: [
				['es2015', {modules: false}],
			],
		}),
	]
}).then(result => result.write('output.js'));

Current Tags

  • 0.2.0                                ...           latest (2 years ago)

4 Versions

  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.1                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (7)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |