2023-10-15
- fix: bump magic-string version #1596
2023-10-15
- fix: Keep the shebang at the top of the file content #1610
2023-10-05
- fix: ensure rollup 4 compatibility #1595
2023-08-11
- docs: update docs #1545
2023-07-15
- fix: preserve
this
reference in the child class #1537
2023-06-19
- fix: add classBodyDepth flag #1507
2023-06-10
- fix: change dynamicRequireRoot to normalizedDynamicRequireRoot && tweak related tests #1508
2023-05-12
- fix: dynamic require root check was broken in some cases #1461
2023-04-11
- feat: Do not use getters for module.exports #1455
2023-01-20
- fix: types should come first in exports #1403
2022-12-18
- fix: check if defaultIsModuleExports is auto for getDefaultExportFromCjs #1358
2022-12-17
- fix: produce code which works when __esModule is already defined #1379
2022-12-17
- fix: update magic-string #1373
2022-12-15
- fix: resolve export exports not found #1363
2022-12-07
- fix: declaration tag @default for ignoreTryCatch + fix some typos #1370
2022-11-27
- fix: correctly wrap a default class export from cjs module #1350
2022-10-21
- chore: update rollup dependencies (3038271)
Skipped for repo rebase
2022-10-09
- fix: prepare for Rollup 3 #1300
2022-08-05
- fix: Exclude multi-line template strings from indent (#1229)
2022-06-24
- fix: Only proxy detected commonjs entry points (#1180)
2022-04-24
- fix: add heuristic to deoptimize requires after calling imported function (requires [email protected]) (#1038)
- feat: reimplement dynamic import handling (requires Node 12, no longer supports require.cache) (#1038)
- fix: support CJS modules re-exporting transpiled ESM modules (#1165)
- fix: Warn when plugins do not pass options to resolveId (#1038)
- fix: Do not change semantics when removing requires in if statements (#1038)
- fix: handle external dependencies when using the cache (#1038)
- fix: proxy all entries to not break legacy polyfill plugins (#1038)
- fix: use correct version and add package exports (#1038)
- fix: validate node-resolve peer version (#1038)
- fix: inject module name into dynamic require function (#1038)
- fix: do not transform "typeof exports" for mixed modules (#1038)
- fix: attach correct plugin meta-data to commonjs modules (#1038)
- feat: expose plugin version (#1038)
- feat: throw for dynamic requires from outside the configured root (#1038)
- feat: add dynamicRequireRoot option (#1038)
- feat: auto-detect conditional requires (#1038)
- feat: limit ignoreTryCatch to external requires (#1038)
- feat: make namespace callable when requiring ESM with function default (#1038)
- feat: Infer type for unidentified modules (#1038)
- feat: automatically wrap cyclic modules (#1038)
- feat: add strictRequires option to wrap modules (#1038)
- refactor: deconflict helpers only once globals are known (#1038)
2022-04-15
- feat: make defaultIsModuleExports as funtion to config defaultIsModuleExports for each source (#1052)
2022-03-27
- docs: sync required rollup version (#1118)
2022-02-23
- chore: transpile dynamic helper to ES5 (#1082)
2021-10-19
- fix: pass on isEntry and custom resolve options (#1018)
2021-10-01
- fix: use safe default value for ignoreTryCatch (#1005)
2021-07-30
- fix: Correctly infer module name for any separator (#924)
2021-07-26
- fix convert module.exports with
__esModule
property(#939) (#942)
2021-07-15
- fix: short-circuit to actual module entry point when using circular ref through a different entry (#888)
2021-05-07
- feat!: Add support for circular dependencies (#658)
2021-05-04
- fix: idempotence issue (#871)
- feat: Add
defaultIsModuleExports
option to match Node.js behavior (#838)
2021-03-26
- feat!: Add ignore-dynamic-requires option (#819)
- fix:
isRestorableCompiledEsm
should also trigger code transform (#816)
2021-01-29
- fix: correctly replace shorthand
require
(#764)
- feature: load dynamic commonjs modules from es
import
(#766) - feature: support cache/resolve access inside dynamic modules (#728)
- feature: allow keeping
require
calls inside try-catch (#729)
- chore: fix lint error (#719)
2020-11-30
- feat!: reconstruct real es module from __esModule marker (#537)
2020-10-27
- feat!: Expose cjs detection and support offline caching (#604)
- fix: avoid wrapping
commonjsRegister
call increateCommonjsModule(...)
(#602) - fix: register dynamic modules when a different loader (i.e typescript) loads the entry file (#599)
- fix: fixed access to node_modules dynamic module with subfolder (i.e 'logform/json') (#601)
- feat: pass type of import to node-resolve (#611)
2020-09-21
- feat: inject __esModule marker into ES namespaces and add Object prototype (#552)
- feat: add requireReturnsDefault to types (#579)
2020-08-13
- feat!: return the namespace by default when requiring ESM (#507)
- fix!: fix interop when importing CJS that is transpiled ESM from an actual ESM (#501)
- fix: add .cjs to default file extensions. (#524)
- chore: update dependencies (fe399e2)
2020-07-13
This restores the fixes from v13.0.1, but as a semver compliant major version.
2020-07-13
Rolls back breaking change in v13.0.1 whereby the exported unwrapExports
method was removed.
2020-07-12
- fix: prevent rewrite require.resolve (#446)
- fix: Support __esModule packages with a default export (#465)
2020-06-05
- fix!: remove namedExports from types (#410)
- fix!: do not create fake named exports (#427)
- fix: __moduleExports in multi entry + inter dependencies (#415)
2020-05-20
- feat: add kill-switch for mixed es-cjs modules (#358)
- feat: set syntheticNamedExports for commonjs modules (#149)
- fix: expose the virtual
require
function on mockmodule
. fixes #307 (#326) - fix: improved shouldWrap logic. fixes #304 (#355)
- feat: support for explicit module.require calls. fixes #310 (#325)
2020-04-12
- fix: produce legal variable names from filenames containing hyphens. (#201)
- feat: support dynamic require (#206)
- feat: export properties defined using Object.defineProperty(exports, ..) (#222)
- chore: snapshot mismatch running tests before publish (d6bbfdd)
- test: add snapshots to all "function" tests (#218)
2020-02-01
- docs: fix link for plugin-node-resolve (#170)
- chore: update dependencies (5405eea)
- chore: remove jsnext:main (#152)
2020-01-04
- fix: module.exports object spread (#121)
2019-12-13
- Breaking: Minimum compatible Rollup version is 1.20.0
- Breaking: Minimum supported Node version is 8.0.0
- Published as @rollup/plugin-commonjs
2019-08-27
- Normalize ids before looking up in named export map (#406)
- Update README.md with note on symlinks (#405)
2019-08-03
- Support preserveSymlinks: false (#401)
2019-06-27
- Make tests run with Node 6 again and update dependencies (#389)
- Handle builtins appropriately for resolve 1.11.0 (#395)
2019-05-15
- Use new [email protected] context functions, fix issue when resolveId returns an object (#387)
2019-04-04
2019-04-04
- Remove colon from module prefixes (#371)
2019-04-04
- Use shared extractAssignedNames, fix destructuring issue (#303)
2019-04-04
- Include typings in release (#382)
2019-04-03
- Add TypeScript types (#363)
2019-04-02
- Improve support for ES3 browsers (#364)
- Add note about monorepo usage to readme (#372)
- Add .js extension to generated helper file (#373)
2019-03-25
- Handle array destructuring assignment (#379)
2019-02-23
- Use correct context when manually resolving ids (#370)
2018-10-10
- Fix missing default warning, produce better code when importing known ESM default exports (#349)
- Refactor code and add prettier (#346)
2018-09-18
- Ignore virtual modules created by other plugins (#327)
- Add "location" and "process" to reserved words (#330)
2018-08-24
- Keep commonJS detection between instantiations (#338)
2018-08-09
- Handle object form of input (#329)
2018-07-27
- Make "from" a reserved word (#320)
2018-04-30
- Fix a caching issue (#316)
2018-04-30
- Re-publication of 9.1.0
2018-04-30
- Fix ordering of modules when using rollup 0.58 (#302)
- Do not automatically wrap modules with return statements in top level arrow functions (#302)
- Make rollup a peer dependency with a version range (#300)
- Re-release of 8.3.0 as #287 was actually a breaking change
- Better handle non-CJS files that contain CJS keywords (#285)
- Use rollup's plugin context
parse
function (#287) - Improve error handling (#288)
- Handle multiple entry points (#283)
- Extract named exports from exported object literals (#272)
- Fix when
options.external
is modified by other plugins (#264) - Recognize static template strings in require statements (#271)
- Don't import default from ES modules that don't export default (#206)
- Prevent duplicate default exports (#230)
- Only include default export when it exists (#226)
- Deconflict
require
aliases (#232)
- Fix magic-string deprecation warning
- Avoid using
index
as a variable name (#208)
- Compatibility with 0.48 (#220)
- Fix another
var
rewrite bug (#181)
- Remove declarators within a var declaration correctly (#179)
- Prefer the names dependencies are imported by for the common
var foo = require('foo')
pattern (#176)
- Allow certain
require
statements to pass through unmolested (#174)
- Handle duplicate default exports (#158)
- Fix exports with parentheses (#168)
- Rewrite
typeof module
,typeof module.exports
andtypeof exports
as'object'
(#151)
- Don't overwrite globals (#127)
- Rewrite top-level
define
asundefined
, so AMD-first UMD blocks do not cause breakage (#144) - Support ES2017 syntax (#132)
- Deconflict exported reserved keywords (#116)
- Fix parenthesis wrapped exports (#120)
- Ensure named exports are added to default export in optimised modules (#112)
- Respect custom
namedExports
in optimised modules (#35)
- Deconflict against globals (#84)
- Optimise modules that don't need to be wrapped in a function (#106)
- Ignore modules containing
import
andexport
statements (#96)
- Ignore dead branches (#93)
- Fix
ignoreGlobal
option (#86)
- Better interop and smaller output (#92)
- Deconflict export and local module (rollup/rollup#554)
- Use named exports as a function when no default export is defined (#524)
- Replace
typeof require
with'function'
(#38) - Don't attempt to resolve entry file relative to importer (#63)
- Handle multiple references to
global
- Return a
name
- Make
transform
stateless (#71) - Support web worker
global
(#50) - Ignore global with
options.ignoreGlobal
(#48)
- Prevent false positives with
namedExports
(#36)
- Rewrite top-level
this
expressions to mean the same asglobal
(#31)
- Optimised module wrappers (#20)
- Allow control over named exports via
options.namedExports
(#18) - Handle bare imports correctly (#23)
- Blacklist all reserved words as export names (#21)
- Configure allowed file extensions via
options.extensions
(#27)
- Support for transpiled modules –
exports.default
is used as the default export in place ofmodule.exports
, if applicable, and__esModule
is not exported (#16)
- Generate sourcemaps by default
- Handle references to
global
(#6)
- Generate named exports where possible (#5)
- Handle shadowed
require
/module
/exports
- Handle dots in filenames (#3)
- Wrap modules in IIFE for more readable output
- Stable release, now that Rollup supports plugins
- Allow mixed CommonJS/ES6 imports/exports
- Use
var
instead oflet
- Sourcemap support
- Support
options.include
andoptions.exclude
- Bail early if module is obviously not a CommonJS module
Add dist files to package (whoops!)
- First release