Comments (4)
Browsers support ESM natively so you can use the module output type
from pkgroll.
yeah, i didn't mention but there is also private node environments such as google apps script or cloudflare workers which requires you to bundle everything without import or require statements. iife format also works well in those environments.
from pkgroll.
This tool is a bundler, so it removes import/requires.
Maybe you can spin up a demo where the output does not work for your needs.
from pkgroll.
yeah, fair enough, better i come with a tangible case. iife exports are generated as part of build phase in my libraries and it was the only missing thing in pkgroll, thats why i wanted to ask. i will see how this goes in the future, thanks anyway.
from pkgroll.
Related Issues (20)
- Read from `package.json#engines` for target
- `./dist/index.d.ts` doesn't link back to `./src/index.mts`
- Externalizing dependency doesn't match against `@types/*`
- Recommendation to move type to dependency HOT 2
- Support/Allow Typescript 5 as a Peer Dependency HOT 3
- Add an option to use a different tsconfig.json file HOT 2
- Support for subpath patterns HOT 3
- Support rollup plugins or use @rollup/plugin-strip to remove debugger statements. HOT 4
- feat: tsconfig paths support HOT 5
- Inaccurate type externalization recommendations
- Type definition generated for CommonJS output using `module.exports = ` is not usable
- Ignore unresolvable entry paths HOT 2
- shims for __dirname so one code can output to both esm and cjs HOT 3
- Typescript file getting parsed as Javascript
- Cyclic dependency when using dynamic imports HOT 5
- `--minify` should preserve names HOT 1
- Support `preserveSymlinks` from `tsconfig.json` HOT 3
- Remove type bundling recommendation for CLIs HOT 5
- Aliases docs outdated since #74
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkgroll.