lbwa / esw Goto Github PK
View Code? Open in Web Editor NEW⚡️Your Instants library build without any configurations
License: MIT License
⚡️Your Instants library build without any configurations
License: MIT License
For better maintenance, any unknown options should be passed to esbuild directly. We don't have to care about the new release esbuild options.
Should trigger 2 concurrent build processes when we define main and module fields in package.json
esw src/a.ts src/b.ts
should keep own filename instead of entry inferenceexternal
detection still works by defaultesw src/*.ts
supported?{
"name": "xxxx",
"main": "dist/index.cjs"
}
run esw build
dist/index.cjs
dist/index.js
.js
always be treated as es module
when type
is set to module
, see https://nodejs.org/dist/latest-v16.x/docs/api/packages.html#type
based on evanw/esbuild#507 (comment)
--bundle=false
enable this featureWe probably should use typescript compiler api to implement these features.
esw/packages/esw/src/inference/options.ts
Line 25 in af5a663
use utils.debuglog to replace debug
3rd lib.
Always print global usage, instead of sub command usage
Should be enhance feature
add eslint
pnpm esw add eslint
run eslint
pnpm esw lint
Expect that user will no longer care about platform
config, see https://github.com/evanw/esbuild/blob/v0.14.11/internal/bundler/bundler.go#L499
{
"main": "dist/index.js",
"module": "dist/lib.esm.js",
}
but output:
dist
|-index.js
|-index.esm.js
expected output:
dist
|-index.js
|-lib.esm.js
related to #28
esw build
would occur no-entry points error. we expect that esw could inferred entry point from fields in package.json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.