@jymfony/compiler v0.4.2
Compiler
Jymfony JS parser/compiler
Compiles ECMAScript modules down to CommonJS to be interpreted and executed by Node.JS.
NOTE: This package shouldn't be used standalone, but only in conjunction with @jymfony/autoloader
.
Its API could change without prior notice.
Import/Export
Imports from commonjs modules are supported.
Example:
module.exports = MySimpleFunction;
can be imported as
import MySimpleFunction from './myfile';
Also Node.JS could be imported as ES modules:
import { dirname } from 'fs';
CommonJS exports are supported as well as ES modules.
module.exports = MyClass;
// Is nearly the same as
export default MyClass;
Decorators
ECMAScript decorators are supported.
! TODO support to decorator onto private instance fields/methods is missing.
Resources
5 months ago
6 months ago
7 months ago
7 months ago
6 months ago
6 months ago
6 months ago
6 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago