承接 fuman/es6bundler 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2021-11-09