fuman/es6bundler
最新稳定版本:0.0.3
Composer 安装命令:
composer require fuman/es6bundler
包简介
Es6Bundler is an ES6 bundler written in PHP
README 文档
README
A ES6 bundler written in PHP.
This bundler tries to change only the import and export statements and ignore the rest. As we do not have to parse the source code completely, it should be possible to create a performant script.
Unsupported exports
Until now, comma separated exports (shorthand version) is not supported. As we need there a nice way to parse javascript including all possible expressions.
Todo
Detecting comma-separated exports and throwing an informative exception about this is not supported.
Usage
$bundler = new \Fuman\Es6Builder\Bundler(new \Fuman\Es6Builder\Config('path/to/web/root/', ['bundle1', 'library/bundle2']));
$transformedAndPackedSource = $bundler->transformFile('path/to/file.js');
统计信息
- 总下载量: 241
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2021-11-09