profile
viewpoint
Rollup rollup https://rollupjs.org Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library or application.

rollup/rollup 23926

Next-generation ES module bundler

rollup/plugins 3361

🍣 The one-stop shop for official Rollup plugins

rollup/awesome 2316

⚡️ Delightful Rollup Plugins, Packages, and Resources

rollup/rollup-plugin-babel 705

This package has moved and is now available at @rollup/plugin-babel / https://github.com/rollup/plugins/tree/master/packages/babel

rollup/rollup-plugin-commonjs 500

This module has moved and is now available at @rollup/plugin-commonjs / https://github.com/rollup/plugins/blob/master/packages/commonjs

rollup/rollup-plugin-node-resolve 471

This module has moved and is now available at @rollup/plugin-node-resolve / https://github.com/rollup/plugins/blob/master/packages/node-resolve

rollup/rollup-plugin-alias 172

This module has moved and is now available at @rollup/plugin-alias / https://github.com/rollup/plugins/tree/master/packages/alias

rollup/rollup-plugin-multi-entry 171

This module has moved and is now available at @rollup/plugin-multi-entry / https://github.com/rollup/plugins/blob/master/packages/multi-entry

rollup/rollup-plugin-replace 164

This module has moved and is now available at @rollup/plugin-replace / https://github.com/rollup/plugins/blob/master/packages/replace

rollup/rollup-plugin-json 128

This module has moved and is now available at @rollup/plugin-json / https://github.com/rollup/plugins/blob/master/packages/json

startedrollup/plugins

started time in 25 minutes

issue openedrollup/plugins

@rollup/plugin-run and typescript tsconfig.json paths aliases ?

<!-- ⚡️ katchow! We 💛 issues.

Please - do not - remove this template. Please - do not - skip or remove parts of this template. Or your issue may be closed.

👉🏽 Need help or tech support? Don't open an issue! Head to https://is.gd/rollup_chat or https://stackoverflow.com/questions/tagged/rollupjs

❤️ Rollup? Please consider supporting our collective: 👉 https://opencollective.com/rollup/donate -->

  • Rollup Plugin Name: <!-- the plugin(s) this issue is about -->
  • Rollup Plugin Version:

Documentation Is:

<!-- Please place an x (no spaces!) in all [ ] that apply -->

  • [ ] Missing
  • [ ] Needed
  • [ ] Confusing
  • [X ] Not Sure?

Please Explain in Detail...

Your Proposal for Changes

import run from '@rollup/plugin-run';
import typescript from "@rollup/plugin-typescript"
import tsConfigPaths from "rollup-plugin-tsconfig-paths"

export default {
  input: 'test/test.ts',
  output: {
    file: 'dist/index.js',
    format: 'cjs'
  },
  plugins: [
    tsConfigPaths({tsConfigPath: 'tsconfig.json'}),
    typescript({tsconfig: 'tsconfig.json'}),
    run(),
  ]
};

Commenting run it transpiles. However with run() I get errors that modules aren't found specified by tsconfig.json paths aliases. So it would be nice if you could add an example to rollup run how to run typecsript code with tsconfig.json.

created time in 5 hours

delete branch rollup/rollup

delete branch : xiaopi-migrate-hex-to-base64url

delete time in 6 hours

push eventrollup/rollup

XiaoPi

commit sha fbc25afcc2e494b562358479524a88ab8fe0f1bf

[v4.0] feat: implement hashing content in Rust (#5155)

view details

push time in 6 hours

PR merged rollup/rollup

[v4.0] feat: implement hashing content in Rust

<!-- ⚡️ katchow! We ❤️ Pull Requests!

If you remove or skip this template, you'll make the 🐼 sad and the mighty god of Github will appear and pile-drive the close button from a great height while making animal noises.

Pull Request Requirements:

  • Please include tests to illustrate the problem this PR resolves.
  • Please lint your changes by running npm run lint before creating a PR.
  • Please update the documentation in /docs where necessary

Please place an x (no spaces - [x]) in all [ ] that apply. -->

This PR contains:

  • [ ] bugfix
  • [ ] feature
  • [x] refactor
  • [ ] documentation
  • [ ] other

Are tests included?

  • [x] yes (bugfixes and features will not be merged without tests)
  • [ ] no

Breaking Changes?

  • [x] yes (breaking changes will not be merged unless absolutely necessary)
  • [ ] no

List any relevant issue numbers: resolves #4803 <!-- If this PR resolves any issues, list them as

resolves #1234

where 1234 is the issue number. This will help us with house-keeping as Github will automatically add a note to those issues stating that a potential fix exists. Once the PR is merged, Github will automatically close those issues.

If an issue is only solved partially or is relevant in some other way, just list the number without "resolves". -->

Description

Currently we still have a sha256 hex encoding for the asset referenceId because a valid js variable cannot include - character. <!-- Please be thorough and clearly explain the problem being solved.

  • If this PR adds a feature, look for previous discussion on the feature by searching the issues first.
  • Is this PR related to an issue? -->
+504 -491

3 comments

416 changed files

TrickyPi

pr closed time in 6 hours

PullRequestReviewEvent

push eventrollup/rollup

TrickyPi

commit sha 3a9e27facd0e13a8bd02cc8ab16db12283347b85

Update tests

view details

push time in 8 hours

push eventrollup/rollup

TrickyPi

commit sha 56e304735546a24fbf3855c8e99ac08134080150

Remove the shebang insertion during cli build

view details

push time in 8 hours

pull request commentrollup/rollup

[v4.0] feat: preserve shebang in entry module for CJS and ESM outputs

Codecov Report

Merging #5163 (be1ab93) into release-4.0 (0b0eabd) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@             Coverage Diff              @@
##           release-4.0    #5163   +/-   ##
============================================
  Coverage        97.67%   97.67%           
============================================
  Files              229      229           
  Lines             8900     8910   +10     
  Branches          2306     2307    +1     
============================================
+ Hits              8693     8703   +10     
  Misses             146      146           
  Partials            61       61           
Files Coverage Δ
src/Graph.ts 100.00% <ø> (ø)
src/Module.ts 99.80% <100.00%> (+<0.01%) :arrow_up:
src/utils/convert-ast.ts 99.36% <100.00%> (+<0.01%) :arrow_up:
src/utils/renderChunks.ts 99.18% <100.00%> (+0.02%) :arrow_up:
TrickyPi

comment created time in 11 hours

pull request commentrollup/rollup

[v4.0] feat: preserve shebang in entry module for CJS and ESM outputs

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#xiaopi-shebang

Notice: Ensure you have installed Rust nightly. If you haven't installed it yet, please first see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust, then see https://rust-lang.github.io/rustup/concepts/channels.html to learn how to install Rust nightly.

or load it into the REPL: https://rollupjs.org/repl/?pr=5163

TrickyPi

comment created time in 11 hours

pull request commentrollup/rollup

[v4.0] feat: preserve shebang in entry module for CJS and ESM outputs

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
rollup 🔄 Building (Inspect) Visit Preview Sep 30, 2023 8:42am
TrickyPi

comment created time in 11 hours

PR opened rollup/rollup

[v4.0] feat: preserve shebang in entry module for CJS and ESM outputs

<!-- ⚡️ katchow! We ❤️ Pull Requests!

If you remove or skip this template, you'll make the 🐼 sad and the mighty god of Github will appear and pile-drive the close button from a great height while making animal noises.

Pull Request Requirements:

  • Please include tests to illustrate the problem this PR resolves.
  • Please lint your changes by running npm run lint before creating a PR.
  • Please update the documentation in /docs where necessary

Please place an x (no spaces - [x]) in all [ ] that apply. -->

This PR contains:

  • [ ] bugfix
  • [x] feature
  • [ ] refactor
  • [ ] documentation
  • [ ] other

Are tests included?

  • [x] yes (bugfixes and features will not be merged without tests)
  • [ ] no

Breaking Changes?

  • [x] yes (breaking changes will not be merged unless absolutely necessary)
  • [ ] no

List any relevant issue numbers:

<!-- If this PR resolves any issues, list them as

resolves #1234

where 1234 is the issue number. This will help us with house-keeping as Github will automatically add a note to those issues stating that a potential fix exists. Once the PR is merged, Github will automatically close those issues.

If an issue is only solved partially or is relevant in some other way, just list the number without "resolves". -->

Description

<!-- Please be thorough and clearly explain the problem being solved.

  • If this PR adds a feature, look for previous discussion on the feature by searching the issues first.
  • Is this PR related to an issue? -->
+162 -17

0 comment

29 changed files

pr created time in 11 hours

push eventrollup/rollup

TrickyPi

commit sha be1ab930372ae830d19451993907daf2d9de4d53

feat: preserve shebang in entry module for CJS and ESM outputs

view details

push time in 11 hours

create barnchrollup/rollup

branch : xiaopi-shebang

created branch time in 11 hours

startedrollup/rollup

started time in 12 hours

issue openedrollup/rollup

[v4] Invalid variable name generated when importing from UTF-8 with BOM file

Rollup Version

4.0.0-23

Operating System (or Browser)

Windows

Node Version (if applicable)

18.17.1

Link To Reproduction

https://github.com/sapphi-red-repros/rollup-bom-invalid-variable-name-generated

Expected Behaviour

The generated code is valid.

const msg$1g = 'foo;'

// import from a utf-8 bom file
const msg = 'foo';
console.log(msg, msg$1);

Actual Behaviour

The generated code is invalid.

constmsg$1g = 'foo;'

// import from a utf-8 bom file
const msg = 'foo';
console.log(msg, msg$1);

created time in 13 hours

startedrollup/rollup

started time in 14 hours

push eventrollup/rollup

TrickyPi

commit sha 6d5ebdd394330f0c12535a38e609aed4571fcc8f

feat: implement hashing content in Rust

view details

push time in 16 hours

startedrollup/rollup

started time in 18 hours

startedrollup/rollup

started time in 20 hours

startedrollup/rollup

started time in 20 hours

CommitCommentEvent

push eventrollup/rollup-docs-cn

renovate[bot]

commit sha fac5f1c1c12dc0409ff090664e305586747dc2f7

chore(deps): lock file maintenance minor/patch updates (#5160) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

view details

docschina-bot

commit sha af078b97911f4af1d220787a8a155a6181b4507c

Merge branch 'master' of https://github.com/rollup/rollup into sync-fac5f1c1

view details

push time in a day

push eventrollup/rollup

TrickyPi

commit sha 935da06c11c15cda250f726e005b4089df749889

feat: implement hashing content in Rust

view details

push time in a day

issue openedrollup/rollup

Preserve reexports in a tree-shakeable form

Feature Use Case

I'd like to keep my libraries as tree-shakeable as possible

Feature Proposal

As we can see here: Rollup playground

we end up with a frozen object being exported because everything gets flat-bundled and because we used:

export * as maths  from './maths.js';

It would be great if a chunk could be (optionally?) created for all of such reexports to keep the code in a format that doesn't deoptimize most of the tree-shakers out there.

As an added bonus the same could be applied to:

import * as maths  from './maths.js';
export { maths };

created time in a day

issue openedrollup/plugins

[typescript] Plugin does not convert native nodejs imports in d.ts files

<!-- ⚡️ katchow! We 💛 issues.

🚨 Your issue will be CLOSED if: - This template is removed - Parts of this template are removed

👉🏽 Need help or tech support? Please don't open an issue! Head to https://is.gd/rollup_chat or https://stackoverflow.com/questions/tagged/rollupjs

❤️ Rollup? Please consider supporting our collective: 👉 https://opencollective.com/rollup/donate -->

  • Rollup Plugin Name: @rollup/plugin-typescript
  • Rollup Plugin Version: 11.1.4
  • Rollup Version: 3.29.3
  • Operating System (or Browser): Windows 11
  • Node Version: v18.18.0
  • Link to reproduction: https://stackblitz.com/edit/rollup-repro-zaitva?file=dist%2Fmain.d.ts

<!-- 🚨 Issues WITHOUT a valid reproduction WILL BE CLOSED!

Please provide one by:

  1. Using the StackBlitz reproduction template at https://stackblitz.com/fork/rollup-repro
  2. Using the REPL.it plugin reproduction template at https://repl.it/@rollup/rollup-plugin-repro
  3. Provide a minimal repository link (Read https://gist.github.com/Rich-Harris/88c5fc2ac6dc941b22e7996af05d70ff for instructions). Please use NPM for installing dependencies! These may take more time to triage than the other options.

⚠️ ZIP Files are unsafe and maintainers will NOT download them. -->

Expected Behavior

Correct paths in .d.ts files (like in .js files)

Actual Behavior

The files contain the imports as they appear in the source files

Additional Information

src/main.ts:

import { testValue } from '#src/test';
export { testValue };

dist/main.js

export { testValue } from './test.js';

dist/main.d.ts

import { testValue } from '#src/test';
export { testValue };
//# sourceMappingURL=main.d.ts.map

created time in a day

push eventrollup/rollup

TrickyPi

commit sha e6cd61a02b30717d207d3d97aa0e7c62a8b5c3ee

Update tests

view details

TrickyPi

commit sha f8767871172d18b1b66e50b0a24fcc26bd5b0a09

Update wasm .d.ts

view details

push time in a day

push eventrollup/rollup

Lukas Taegert-Atkinson

commit sha 4e92d60fa90cead39481e3703d26e5d812f43bd1

Deoptimize all parameters when losing track of a function (#5158)

view details

Lukas Taegert-Atkinson

commit sha a6448b99f725d457e35821b73a865b5c4d4c6a61

3.29.4

view details

renovate[bot]

commit sha fac5f1c1c12dc0409ff090664e305586747dc2f7

chore(deps): lock file maintenance minor/patch updates (#5160) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

view details

Lukas Taegert-Atkinson

commit sha 4576ef3dfaf83415b319c851acd1a85b100e4ad1

[v4.0] Set minimum Node version to 18

view details

Lukas Taegert-Atkinson

commit sha 643272e0d11a28bd56491719b75f95147bb66ac7

[v4.0] Switch parser to SWC and introduce native/WASM code (#5073) * Add native compilation for local NodeJS * Link instead of copying for faster dev cycles for now * Parse AST * Convert first trivial AST to a buffer * Use SWC for parsing * Extend AST conversion * Make AST more similar * Fix line number issue by creating a new sourcemap (and thus compiler) for each run * Collect timings * Add code_length to struct * Refine parsing * Extend parsing * Extend AST: ImportDefaultSpecifier, LiteralBoolean, LiteralNull, ExportDefaultExpression * Extend AST: ImportNamespaceSpecifier, ExportAll * Extend AST: BinaryExpression, ArrayPattern, ObjectPattern, AssignmentPatternProperty, ArrayLiteral, ImportExpression * Extend AST: ConditionalExpression * Extend AST: FunctionDeclaration, ClassDeclaration, ClassBody, ReturnStatement * Extend AST: ObjectLiteral, KeyValueProperty * Extend AST: ShorthandProperty * Extend AST: GetterProperty, AssignmentExpression, NewExpression, FunctionExpression * Extend AST: ThrowStatement * Extend AST: ExportDefaultDeclaration * Extend AST: AssignmentPattern, AwaitExpression, BreakStatement Start sorting AST nodes * Extend AST: TryStatement, CatchClause, ChainExpression * Extend AST: ClassExpression, ContinueStatement, DebuggerStatement, DoWhileStatement, EmptyStatement * Extend AST: ExportNamedDeclaration, ForInStatement, ForOfStatement, ForStatement * Extend AST: IfStatement * Extend AST: Import attributes * Extend AST: Literal<RegExp>, Literal<BigInt> * Extend AST: LogicalExpression * Extend AST: MetaProperty * Extend AST: Various Property types * Extend AST: Progress on classes * Extend AST: MethodDefinition, PropertyDefinition, PrivateName, ThisExpression * Extend AST: StaticBlock, Super * Extend AST: RestElement, SequenceExpression, SwitchCase, SwitchStatement * Extend AST: TaggedTemplateExpression, TemplateElement, TemplateLiteral, UnaryExpression, UpdateExpression, YieldExpression * Extend AST: Properties in object patterns * Finishing Fixes * More fixes * Run cargo fmt * Handle directives * Minor fixes * Unicode support * Fix optional chain expressions * Adapt tests * Do not run acorn anymore * Update lockfile * Minor fixes * Move to rust folder * Separate Rust Node bindings to allow adding WASM bindings in another workspace * Make Napi build closer to how rs.napi works * Fix path issues * Disable browser build for now * Add native package directories * Refine runWithEcho * Try initial steps with Github flow * Trigger change * Temporarily add yarn lockfile until we figured out if we get it to work with npm * Use nightly toolchain * Use default locations for Napi files to make things easier * Adapt workflow * Skip regular tests for now * Attempt to fix broken workflows * Attempt to fix broken workflows * Attempt to fix broken workflows * Test MacOS/WIndows * Fix bootstrap build * Skip tests * Rename workflow * Add additional tests * Use zig differently * Try to fix musl build * Skip musl again for now * Add publish to workflow * 4.0.0-0 * Remove yarn lock again * Fix coverage job * Fix artefact handling * Revert "4.0.0-0" This reverts commit 734806f0ae9a4cfa63e996c2d9be099b2a4580bf. * 4.0.0-0 * Do not include default triples twice * Fix native npm packages * 4.0.0-1 * Add missing additional tests except browser tests * Try to fix publish and tests * 4.0.0-2 * Switch to faster utf-16 conversion * 4.0.0-3 * Fix positioning algorithm when manually searching the code * 4.0.0-4 * feat: Add WASM browser build (#5077) * feat: add wasm browser build * move wasm binding into a separate cargo workspace * use imports replacing * set the targetEnv option of wasm to browser in browser build * add the wasm build to build command * fix lint error and ci error * add more comments to silence the linter * big change * trigger change * run browser tests * trigger change * tweak wasm build on CI * Increase build timeout * Use shared string constants * Extract fixed strings into constants * Remove comment * Get rid of dbg! calls * Add lockfile hash to cargo cache * Use if let over match in some cases * Return the buffer of the syntax error in parse_ast * Initial annotation support * Put annotation types into string table * Remove invalid annotations * Support nested calls and new expressions * Improve tree-shaking for annotations * Adapt test * Properly handle line-breaks, commas etc. * Mark nested pure annotations as pure * Remove sourcemap comments * Handle function side effect annotatinos * Remove old comment-handling code * Increase timeout for browser tests * Only skip the tests that still fail * Run coverage again on CI * Get the buffer of pos and message from the Syntax error * Handle the lint errors from SWC * Reenable tests about parse errors and adjust some relevant code * Emit native.js to native.cjs * Add cjs extension for native importee when bundling for ESM * Change native importee with replace plugin and emit native.cjs in napi build * Silence the linter for importing native * Use node:path to resolve native binding files * Add Node WASM files to Native packages for StackBlitz and similar use cases * Unignore *.d.ts in the wasm dir * 4.0.0-5 * Fix copy-wasm-node.js * 4.0.0-6 * Remove .gitignore in wasm-node directory * 4.0.0-7 * Include .cjs files when publishing rollup to npm * 4.0.0-8 * Get readString function at runtime * eslint: ignore wasm-node and set node extensions of import/resolver * 4.0.0-9 * Change the required node to >=14.18.0 as before * 4.0.0-10 * Prepare to fix ESM build Still requires bug-fix on Rollup side for relative external dependencies outside the ouput directory * Update Rollup * Enable ESM tests * Re-enable another test * Remove CJS eslint configuration * Fix extension * Fix test * Fix entension for native import * Support for publishing a completely separate package @rollup/wasm-node * 4.0.0-11 * Fix publish for wasm node package * Add AST verification to function tests * Only use plugin arrays in form and function tests * Fix spans in function tests * Verify AST in form tests as well * Try to publish @rollup/browser and fix publish-wasm-node-package.js * 4.0.0-12 * Tweak publish scripts * Fix importing wasm file in browser * Parse code as unknown module type for greater compatibility * Remove acorn options * Tweak getReadStringFunction * Fix browser tests * 4.0.0-13 * Remove polyfills that are no longer needed in browser tests * Convert to new import attributes AST format * Rename assertions to attributes * Deprecate externalImportAssertions in favor of externalImportAttributes * Update SWC version * Remove max-call-stack test SWC is not capable of handling it and we cannot fix it * Improve coverage * re-enable repl-artefacts workflow * Fix test * Preload wasm file in docs * docs: add functions to get full path of url * Delete the build plugin handleImportMetaUrl * Make 'npm install github/branch' work * Verify there is a valid changelog entry before releasing * Create release notes and comments from CI Minor change to maybe trigger a CI run * Fix RegExp * 4.0.0-14 * Minor changes for a test PR (#5139) * Fix RegExp use * 4.0.0-15 * Do not rely on current branch to find the PR * 4.0.0-16 * Fix how to determine git commit range * 4.0.0-17 * Make sure we fetch all history on publish * 4.0.0-18 * Add proper permissions * 4.0.0-19 * Use Double quotation marks instead of Single quotation marks if concurrently scripts with flags * Remove "engines" from native packages * Update CONTRIBUTING.md --------- Co-authored-by: XiaoPi <530257315@qq.com>

view details

XiaoPi

commit sha 92864d48896dd09c0381d4b1cbef769a03c3f7d1

[v4.0] Set the default of skipSelf to true (#5142) * Set minimum Node version to 18 * Set the default of skipSelf to true * [v4.0] Switch parser to SWC and introduce native/WASM code (#5073) * Add native compilation for local NodeJS * Link instead of copying for faster dev cycles for now * Parse AST * Convert first trivial AST to a buffer * Use SWC for parsing * Extend AST conversion * Make AST more similar * Fix line number issue by creating a new sourcemap (and thus compiler) for each run * Collect timings * Add code_length to struct * Refine parsing * Extend parsing * Extend AST: ImportDefaultSpecifier, LiteralBoolean, LiteralNull, ExportDefaultExpression * Extend AST: ImportNamespaceSpecifier, ExportAll * Extend AST: BinaryExpression, ArrayPattern, ObjectPattern, AssignmentPatternProperty, ArrayLiteral, ImportExpression * Extend AST: ConditionalExpression * Extend AST: FunctionDeclaration, ClassDeclaration, ClassBody, ReturnStatement * Extend AST: ObjectLiteral, KeyValueProperty * Extend AST: ShorthandProperty * Extend AST: GetterProperty, AssignmentExpression, NewExpression, FunctionExpression * Extend AST: ThrowStatement * Extend AST: ExportDefaultDeclaration * Extend AST: AssignmentPattern, AwaitExpression, BreakStatement Start sorting AST nodes * Extend AST: TryStatement, CatchClause, ChainExpression * Extend AST: ClassExpression, ContinueStatement, DebuggerStatement, DoWhileStatement, EmptyStatement * Extend AST: ExportNamedDeclaration, ForInStatement, ForOfStatement, ForStatement * Extend AST: IfStatement * Extend AST: Import attributes * Extend AST: Literal<RegExp>, Literal<BigInt> * Extend AST: LogicalExpression * Extend AST: MetaProperty * Extend AST: Various Property types * Extend AST: Progress on classes * Extend AST: MethodDefinition, PropertyDefinition, PrivateName, ThisExpression * Extend AST: StaticBlock, Super * Extend AST: RestElement, SequenceExpression, SwitchCase, SwitchStatement * Extend AST: TaggedTemplateExpression, TemplateElement, TemplateLiteral, UnaryExpression, UpdateExpression, YieldExpression * Extend AST: Properties in object patterns * Finishing Fixes * More fixes * Run cargo fmt * Handle directives * Minor fixes * Unicode support * Fix optional chain expressions * Adapt tests * Do not run acorn anymore * Update lockfile * Minor fixes * Move to rust folder * Separate Rust Node bindings to allow adding WASM bindings in another workspace * Make Napi build closer to how rs.napi works * Fix path issues * Disable browser build for now * Add native package directories * Refine runWithEcho * Try initial steps with Github flow * Trigger change * Temporarily add yarn lockfile until we figured out if we get it to work with npm * Use nightly toolchain * Use default locations for Napi files to make things easier * Adapt workflow * Skip regular tests for now * Attempt to fix broken workflows * Attempt to fix broken workflows * Attempt to fix broken workflows * Test MacOS/WIndows * Fix bootstrap build * Skip tests * Rename workflow * Add additional tests * Use zig differently * Try to fix musl build * Skip musl again for now * Add publish to workflow * 4.0.0-0 * Remove yarn lock again * Fix coverage job * Fix artefact handling * Revert "4.0.0-0" This reverts commit 734806f0ae9a4cfa63e996c2d9be099b2a4580bf. * 4.0.0-0 * Do not include default triples twice * Fix native npm packages * 4.0.0-1 * Add missing additional tests except browser tests * Try to fix publish and tests * 4.0.0-2 * Switch to faster utf-16 conversion * 4.0.0-3 * Fix positioning algorithm when manually searching the code * 4.0.0-4 * feat: Add WASM browser build (#5077) * feat: add wasm browser build * move wasm binding into a separate cargo workspace * use imports replacing * set the targetEnv option of wasm to browser in browser build * add the wasm build to build command * fix lint error and ci error * add more comments to silence the linter * big change * trigger change * run browser tests * trigger change * tweak wasm build on CI * Increase build timeout * Use shared string constants * Extract fixed strings into constants * Remove comment * Get rid of dbg! calls * Add lockfile hash to cargo cache * Use if let over match in some cases * Return the buffer of the syntax error in parse_ast * Initial annotation support * Put annotation types into string table * Remove invalid annotations * Support nested calls and new expressions * Improve tree-shaking for annotations * Adapt test * Properly handle line-breaks, commas etc. * Mark nested pure annotations as pure * Remove sourcemap comments * Handle function side effect annotatinos * Remove old comment-handling code * Increase timeout for browser tests * Only skip the tests that still fail * Run coverage again on CI * Get the buffer of pos and message from the Syntax error * Handle the lint errors from SWC * Reenable tests about parse errors and adjust some relevant code * Emit native.js to native.cjs * Add cjs extension for native importee when bundling for ESM * Change native importee with replace plugin and emit native.cjs in napi build * Silence the linter for importing native * Use node:path to resolve native binding files * Add Node WASM files to Native packages for StackBlitz and similar use cases * Unignore *.d.ts in the wasm dir * 4.0.0-5 * Fix copy-wasm-node.js * 4.0.0-6 * Remove .gitignore in wasm-node directory * 4.0.0-7 * Include .cjs files when publishing rollup to npm * 4.0.0-8 * Get readString function at runtime * eslint: ignore wasm-node and set node extensions of import/resolver * 4.0.0-9 * Change the required node to >=14.18.0 as before * 4.0.0-10 * Prepare to fix ESM build Still requires bug-fix on Rollup side for relative external dependencies outside the ouput directory * Update Rollup * Enable ESM tests * Re-enable another test * Remove CJS eslint configuration * Fix extension * Fix test * Fix entension for native import * Support for publishing a completely separate package @rollup/wasm-node * 4.0.0-11 * Fix publish for wasm node package * Add AST verification to function tests * Only use plugin arrays in form and function tests * Fix spans in function tests * Verify AST in form tests as well * Try to publish @rollup/browser and fix publish-wasm-node-package.js * 4.0.0-12 * Tweak publish scripts * Fix importing wasm file in browser * Parse code as unknown module type for greater compatibility * Remove acorn options * Tweak getReadStringFunction * Fix browser tests * 4.0.0-13 * Remove polyfills that are no longer needed in browser tests * Convert to new import attributes AST format * Rename assertions to attributes * Deprecate externalImportAssertions in favor of externalImportAttributes * Update SWC version * Remove max-call-stack test SWC is not capable of handling it and we cannot fix it * Improve coverage * re-enable repl-artefacts workflow * Fix test * Preload wasm file in docs * docs: add functions to get full path of url * Delete the build plugin handleImportMetaUrl * Make 'npm install github/branch' work * Verify there is a valid changelog entry before releasing * Create release notes and comments from CI Minor change to maybe trigger a CI run * Fix RegExp * 4.0.0-14 * Minor changes for a test PR (#5139) * Fix RegExp use * 4.0.0-15 * Do not rely on current branch to find the PR * 4.0.0-16 * Fix how to determine git commit range * 4.0.0-17 * Make sure we fetch all history on publish * 4.0.0-18 * Add proper permissions * 4.0.0-19 * Use Double quotation marks instead of Single quotation marks if concurrently scripts with flags * Remove "engines" from native packages * Update CONTRIBUTING.md --------- Co-authored-by: XiaoPi <530257315@qq.com> * Update tests * Retrieve the code that was omitted during the merge * Restore test coverage * Update docs/plugin-development/index.md Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com> --------- Co-authored-by: Lukas Taegert-Atkinson <lukas.taegert-atkinson@tngtech.com> Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>

view details

XiaoPi

commit sha 62cbff4a20030c5d787f3162ea29981e40525030

[v4.0] Imporve the performance of generating ast and rollup ast nodes (#5144) * Set TsConfig useDefineForClassFields to false for reducing time consumption * Adapt annotations props for reducing memory consumption

view details

Lukas Taegert-Atkinson

commit sha 55abe0fbf7116c9160a53da6a27cc9bce2eafd40

[v4.0] Remove deprecated features (#5143) * Remove hasModuleSideEffects from module info * Remove this.moduleIds from plugin context * Remove output.preferConst * Remove output.dynamicImportFunction * Remove output.experimentalDeepDynamicChunkOptimization * Remove output.namespaceToStringTag * Remove inlineDynamicImports input option * Remove manualChunks and preserveModules input options as well as maxParallelFileReads

view details

XiaoPi

commit sha accd66a4247dfdb4d7f2605b399d12d001e5a3ed

[v4.0] feat: Do not watch files anymore if their content is returned by the load hook (#5150) * feat: Do not watch files anymore if their content is returned by the load hook * tweak test

view details

Lukas Taegert-Atkinson

commit sha 7325320ad95955540e1bb38dab9d600f569d915c

[v4.0] Remove onwarn from normalized input options (#5147) Remove onwarn from normalized input options Also remove the RollupWarning type

view details

Lukas Taegert-Atkinson

commit sha fda977bb38ab31638c3a4a18e0c4f8b9c8482e6c

[v4.0] Add parse option to allow return outside function (#5154) Allow return outside functions

view details

Lukas Taegert-Atkinson

commit sha 0b0eabd8cd93de7c6b69c95a4cac24559c040b80

[v4.0] Handle empty exports (#5157) Handle empty exports

view details

TrickyPi

commit sha a917962425f4f3cbc279b0c9227f50e936b8240f

Merge branch 'release-4.0' into xiaopi-migrate-hex-to-base64url

view details

push time in a day

push eventrollup/rollup

TrickyPi

commit sha 76faade7d4773d7f1dea641456b81d384d7bdf52

feat: implement hashing content in Rust

view details

push time in a day

push eventrollup/rollup

TrickyPi

commit sha bc1b7d80cb646a1c08ca67d0eca215c8191dca34

feat: implement hashing content in Rust

view details

push time in a day

more