Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3.0] Better sourcemap emission #4605

Merged
merged 22 commits into from Aug 15, 2022
Merged

Commits on Jul 29, 2022

  1. Copy the full SHA
    16b0cbb View commit details
    Browse the repository at this point in the history
  2. [v3.0] Remove actively deprecated features, show warnings for other d…

    …eprecated features (#4552)
    
    * Remove all active deprecations
    
    * Make all inactive deprecations active
    
    * Try to make test more stable
    
    * Update CLI help screen
    lukastaegert committed Jul 29, 2022
    Copy the full SHA
    8dfcd36 View commit details
    Browse the repository at this point in the history
  3. [v3.0] New hashing algorithm that "fixes (nearly) everything" (#4543)

    * Initial new hashing idea
    
    * Simplify external import path generation
    
    197 broken tests left
    
    * Use correct file names in chunk info
    
    197 broken tests left
    
    * Implement first draft for hashing algorithm
    
    189 broken tests left
    
    * Remove active deprecations
    
    this.emitAsset
    this.emitChunk
    this.getAssetFileName
    this.getChunkFileName
    import.meta.ROLLUP_ASSET_URL_
    import.meta.ROLLUP_CHUNK_URL_
    
    * Reduce render parameters
    
    * Always scan all chunks for hashes
    
    * Fix asset emission and remaining tests
    
    * Reintroduce augmentChunkHash and get OutputChunk by converting RenderedChunk
    
    * Provide chunk graph in renderChunk
    
    * Handle hash collisions
    
    * Remove deprecated hacky asset emission
    
    * Allow to configure hash sizes per file
    
    * Update documentation
    
    * Extend tests
    
    * Minor improvements
    
    * Improve documentation about hashing
    
    * Replace hash in sourcemap file
    
    * Provide ChunkInfo in banner/footer/intro/outro
    
    * Extract hashing logic
    
    * Clean up hashing logic
    
    * Add ExternalChunk wrapper
    
    * Store inputBase on Chunk
    
    * Store snippets on Chunk
    
    * Align chunk interfaces
    
    * Reduce this. property access
    
    * Move dynamicImportFunction warning to options normalization
    
    * Restructure rendering logic
    
    * Do not run on Node 10
    
    * Update documentation
    
    * Try to fix Windows tests
    
    * Improve coverage
    
    * Remove graph background colors
    
    3.0.0-0
    lukastaegert committed Jul 29, 2022
    Copy the full SHA
    79e18b3 View commit details
    Browse the repository at this point in the history
  4. [v3.0] Run output plugins last (#3846)

    * fix: run output plugins last
    
    * Add test
    
    Co-authored-by: Lukas Taegert-Atkinson <lukas.taegert-atkinson@tngtech.com>
    aleclarson and lukastaegert committed Jul 29, 2022
    Copy the full SHA
    465dbb4 View commit details
    Browse the repository at this point in the history
  5. [v3.0] Convert build scripts to ESM, update dependencies (#4558)

    * Convert scripts to ESM, update dependencies
    
    * Fix lint issue
    
    3.0.0-1
    lukastaegert committed Jul 29, 2022
    Copy the full SHA
    4e520ca View commit details
    Browse the repository at this point in the history
  6. [v3.0] Better esm config file support (#4574)

    * More precise native ESM support check
    
    * Use import to load .js config file if package type is module
    
    * Update and add tests handling type module
    
    * Remove Node version check and simplify logic
    
    * Update documentation
    
    * Document how to replace __dirname and import JSON
    
    Co-authored-by: Linus Miller <linus.miller@bitmill.io>
    lukastaegert and lohfu committed Jul 29, 2022
    Copy the full SHA
    2942e7b View commit details
    Browse the repository at this point in the history
  7. [v3.0] Rework file name patterns when preserving modules (#4565)

    * Put preserveModules path into Chunk name
    
    * Use regular entryFileNames logic
    
    * Clarify documentation for `preserveModules`
    
    * Improve coverage
    
    * Improve wording in docs
    lukastaegert committed Jul 29, 2022
    Copy the full SHA
    2cc052b View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    ff65a10 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    116218c View commit details
    Browse the repository at this point in the history
  10. Copy the full SHA
    79bed07 View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    ab391de View commit details
    Browse the repository at this point in the history
  12. Copy the full SHA
    d196046 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2022

  1. Copy the full SHA
    0ab0b41 View commit details
    Browse the repository at this point in the history
  2. [v3.0] Refine errors and warnings (#4579)

    * [v3.0] New hashing algorithm that "fixes (nearly) everything" (#4543)
    
    * Initial new hashing idea
    
    * Simplify external import path generation
    
    197 broken tests left
    
    * Use correct file names in chunk info
    
    197 broken tests left
    
    * Implement first draft for hashing algorithm
    
    189 broken tests left
    
    * Remove active deprecations
    
    this.emitAsset
    this.emitChunk
    this.getAssetFileName
    this.getChunkFileName
    import.meta.ROLLUP_ASSET_URL_
    import.meta.ROLLUP_CHUNK_URL_
    
    * Reduce render parameters
    
    * Always scan all chunks for hashes
    
    * Fix asset emission and remaining tests
    
    * Reintroduce augmentChunkHash and get OutputChunk by converting RenderedChunk
    
    * Provide chunk graph in renderChunk
    
    * Handle hash collisions
    
    * Remove deprecated hacky asset emission
    
    * Allow to configure hash sizes per file
    
    * Update documentation
    
    * Extend tests
    
    * Minor improvements
    
    * Improve documentation about hashing
    
    * Replace hash in sourcemap file
    
    * Provide ChunkInfo in banner/footer/intro/outro
    
    * Extract hashing logic
    
    * Clean up hashing logic
    
    * Add ExternalChunk wrapper
    
    * Store inputBase on Chunk
    
    * Store snippets on Chunk
    
    * Align chunk interfaces
    
    * Reduce this. property access
    
    * Move dynamicImportFunction warning to options normalization
    
    * Restructure rendering logic
    
    * Do not run on Node 10
    
    * Update documentation
    
    * Try to fix Windows tests
    
    * Improve coverage
    
    * Remove graph background colors
    
    3.0.0-0
    
    * [v3.0] Change default for output.generatedCode.reservedNamesAsProps (#4568)
    
    * [v3.0] New hashing algorithm that "fixes (nearly) everything" (#4543)
    
    * Initial new hashing idea
    
    * Simplify external import path generation
    
    197 broken tests left
    
    * Use correct file names in chunk info
    
    197 broken tests left
    
    * Implement first draft for hashing algorithm
    
    189 broken tests left
    
    * Remove active deprecations
    
    this.emitAsset
    this.emitChunk
    this.getAssetFileName
    this.getChunkFileName
    import.meta.ROLLUP_ASSET_URL_
    import.meta.ROLLUP_CHUNK_URL_
    
    * Reduce render parameters
    
    * Always scan all chunks for hashes
    
    * Fix asset emission and remaining tests
    
    * Reintroduce augmentChunkHash and get OutputChunk by converting RenderedChunk
    
    * Provide chunk graph in renderChunk
    
    * Handle hash collisions
    
    * Remove deprecated hacky asset emission
    
    * Allow to configure hash sizes per file
    
    * Update documentation
    
    * Extend tests
    
    * Minor improvements
    
    * Improve documentation about hashing
    
    * Replace hash in sourcemap file
    
    * Provide ChunkInfo in banner/footer/intro/outro
    
    * Extract hashing logic
    
    * Clean up hashing logic
    
    * Add ExternalChunk wrapper
    
    * Store inputBase on Chunk
    
    * Store snippets on Chunk
    
    * Align chunk interfaces
    
    * Reduce this. property access
    
    * Move dynamicImportFunction warning to options normalization
    
    * Restructure rendering logic
    
    * Do not run on Node 10
    
    * Update documentation
    
    * Try to fix Windows tests
    
    * Improve coverage
    
    * Remove graph background colors
    
    3.0.0-0
    
    * Rework warnings and errors
    
    * Refine some error messages
    * Reduce number of different props of errors
    * All errors are declared in error.ts
    * Use name RollupError for errors that do not have a cause
    
    * Extend documentation
    lukastaegert committed Jul 30, 2022
    Copy the full SHA
    fefed10 View commit details
    Browse the repository at this point in the history
  3. [v3.0] Browser build (#4593)

    * [v3.0] New hashing algorithm that "fixes (nearly) everything" (#4543)
    
    * Initial new hashing idea
    
    * Simplify external import path generation
    
    197 broken tests left
    
    * Use correct file names in chunk info
    
    197 broken tests left
    
    * Implement first draft for hashing algorithm
    
    189 broken tests left
    
    * Remove active deprecations
    
    this.emitAsset
    this.emitChunk
    this.getAssetFileName
    this.getChunkFileName
    import.meta.ROLLUP_ASSET_URL_
    import.meta.ROLLUP_CHUNK_URL_
    
    * Reduce render parameters
    
    * Always scan all chunks for hashes
    
    * Fix asset emission and remaining tests
    
    * Reintroduce augmentChunkHash and get OutputChunk by converting RenderedChunk
    
    * Provide chunk graph in renderChunk
    
    * Handle hash collisions
    
    * Remove deprecated hacky asset emission
    
    * Allow to configure hash sizes per file
    
    * Update documentation
    
    * Extend tests
    
    * Minor improvements
    
    * Improve documentation about hashing
    
    * Replace hash in sourcemap file
    
    * Provide ChunkInfo in banner/footer/intro/outro
    
    * Extract hashing logic
    
    * Clean up hashing logic
    
    * Add ExternalChunk wrapper
    
    * Store inputBase on Chunk
    
    * Store snippets on Chunk
    
    * Align chunk interfaces
    
    * Reduce this. property access
    
    * Move dynamicImportFunction warning to options normalization
    
    * Restructure rendering logic
    
    * Do not run on Node 10
    
    * Update documentation
    
    * Try to fix Windows tests
    
    * Improve coverage
    
    * Remove graph background colors
    
    3.0.0-0
    
    * Set up browser build
    
    * Generate commithash inline
    
    * Remove execa
    
    * Chmod executable from rollup config
    
    * Adjust pkg.files
    
    * Copy types into build
    
    * Work on release script
    
    * Continue work on release script
    
    * Continue work on release script
    
    * Finish release script
    
    * Push correct REPL artefacts
    
    * Add comments to released PRs and issues
    
    * fixup! [v3.0] New hashing algorithm that "fixes (nearly) everything" (#4543)
    
    * Add Rollup-in-browser example
    lukastaegert committed Jul 30, 2022
    Copy the full SHA
    e5b3ba0 View commit details
    Browse the repository at this point in the history
  4. [v3.0] Use named export for loadConfigFile (#4581)

    * [v3.0] Use named export for loadConfigFile
    
    * Only expose files in dist with their full names
    
    * Move browser sources to src subfolder
    lukastaegert committed Jul 30, 2022
    Copy the full SHA
    41906ce View commit details
    Browse the repository at this point in the history
  5. 3.0.0-3

    lukastaegert committed Jul 30, 2022
    Copy the full SHA
    b530497 View commit details
    Browse the repository at this point in the history
  6. Fix release script

    lukastaegert committed Jul 30, 2022
    Copy the full SHA
    4c3b1a4 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. Copy the full SHA
    c322542 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    1e7f339 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2022

  1. Copy the full SHA
    6f5f74d View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2022

  1. Merge branch 'release-3.0.0' into better-sourcemap-handling

    # Conflicts:
    #	src/Chunk.ts
    #	src/rollup/types.d.ts
    #	src/utils/PluginDriver.ts
    #	src/utils/error.ts
    #	src/utils/renderChunks.ts
    #	test/function/samples/non-function-hook-async/_config.js
    #	test/function/samples/non-function-hook-sync/_config.js
    #	test/hooks/index.js
    lukastaegert committed Aug 14, 2022
    Copy the full SHA
    75cf563 View commit details
    Browse the repository at this point in the history