Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rollup/plugins
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2b81d1485fc8f9db5b3a656fdfac40ba5f9facfe
Choose a base ref
...
head repository: rollup/plugins
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d9c79ac4bdf980e284207eececc2c364a5160bda
Choose a head ref
  • 11 commits
  • 42 files changed
  • 2 contributors

Commits on Oct 10, 2022

  1. chore(release): typescript v9.0.0

    Release Workflow committed Oct 10, 2022
    Copy the full SHA
    bffcfb2 View commit details
  2. fix(url): prepare for Rollup 3 (#1281)

    BREAKING CHANGES: Requires Node 14
    lukastaegert authored Oct 10, 2022
    Copy the full SHA
    05b8781 View commit details
  3. chore(release): url v8.0.0

    Release Workflow committed Oct 10, 2022
    Copy the full SHA
    971e3b3 View commit details
  4. fix(virtual): prepare for Rollup 3 (#1280)

    BREAKING CHANGES: Requires Node 14
    lukastaegert authored Oct 10, 2022
    Copy the full SHA
    8da116c View commit details
  5. chore(release): virtual v3.0.0

    Release Workflow committed Oct 10, 2022
    Copy the full SHA
    61c6b00 View commit details
  6. fix(wasm): prepare for Rollup 3 (#1301)

    BREAKING CHANGES: Requires Node 14
    lukastaegert authored Oct 10, 2022
    Copy the full SHA
    09df3b8 View commit details
  7. chore(release): wasm v6.0.0

    Release Workflow committed Oct 10, 2022
    Copy the full SHA
    a2437c7 View commit details
  8. fix(yaml): prepare for Rollup 3 (#1302)

    BREAKING CHANGES: Requires Node 14
    lukastaegert authored Oct 10, 2022
    Copy the full SHA
    30634ac View commit details
  9. chore(release): yaml v4.0.0

    Release Workflow committed Oct 10, 2022
    Copy the full SHA
    fa80acc View commit details

Commits on Oct 11, 2022

  1. fix(typescript): fix ESM build (#1311)

    Do not use named imports from TypeScript
    lukastaegert authored Oct 11, 2022
    Copy the full SHA
    dfd4de3 View commit details
  2. chore(release): typescript v9.0.1

    Release Workflow committed Oct 11, 2022
    Copy the full SHA
    d9c79ac View commit details
Showing with 285 additions and 320 deletions.
  1. +16 −0 packages/typescript/CHANGELOG.md
  2. +1 −1 packages/typescript/package.json
  3. +1 −2 packages/typescript/src/customTransformers.ts
  4. +1 −1 packages/typescript/src/moduleResolution.ts
  5. +1 −1 packages/typescript/src/options/plugin.ts
  6. +3 −3 packages/typescript/src/options/tsconfig.ts
  7. +2 −1 packages/typescript/src/preflight.ts
  8. +4 −1 packages/typescript/src/tslib.ts
  9. +2 −2 packages/typescript/src/watchProgram.ts
  10. +1 −1 packages/typescript/test/fixtures/incremental-single/tsconfig.tsbuildinfo
  11. +1 −0 packages/typescript/test/node_modules/current-package
  12. +23 −0 packages/typescript/test/test.mjs
  13. +8 −0 packages/url/CHANGELOG.md
  14. +1 −1 packages/url/README.md
  15. +21 −12 packages/url/package.json
  16. +0 −12 packages/url/rollup.config.js
  17. +11 −0 packages/url/rollup.config.mjs
  18. +15 −15 packages/url/test/snapshots/test.js.md
  19. BIN packages/url/test/snapshots/test.js.snap
  20. +8 −0 packages/virtual/CHANGELOG.md
  21. +1 −1 packages/virtual/README.md
  22. +21 −19 packages/virtual/package.json
  23. +0 −14 packages/virtual/rollup.config.js
  24. +13 −0 packages/virtual/rollup.config.mjs
  25. +8 −0 packages/wasm/CHANGELOG.md
  26. +1 −1 packages/wasm/README.md
  27. +18 −11 packages/wasm/package.json
  28. 0 packages/wasm/rollup.config.mjs
  29. +1 −1 packages/wasm/src/helper.ts
  30. +1 −1 packages/wasm/src/index.ts
  31. +8 −0 packages/yaml/CHANGELOG.md
  32. +1 −1 packages/yaml/README.md
  33. +24 −15 packages/yaml/package.json
  34. +0 −10 packages/yaml/rollup.config.js
  35. +11 −0 packages/yaml/rollup.config.mjs
  36. +3 −4 packages/yaml/src/index.js
  37. +3 −3 packages/yaml/test/fixtures/spec.json
  38. +0 −16 packages/yaml/test/test.js
  39. +0 −1 packages/yaml/test/types.ts
  40. +0 −8 packages/yaml/types/index.d.ts
  41. +50 −160 pnpm-lock.yaml
  42. +1 −1 shared/ava.config.mjs
16 changes: 16 additions & 0 deletions packages/typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @rollup/plugin-typescript ChangeLog

## v9.0.1

_2022-10-11_

### Bugfixes

- fix: fix ESM build [#1311](https://github.com/rollup/plugins/pull/1311)

## v9.0.0

_2022-10-10_

### Breaking Changes

- fix: prepare for Rollup 3 [#1282](https://github.com/rollup/plugins/pull/1282)

## v8.5.0

_2022-09-06_
2 changes: 1 addition & 1 deletion packages/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rollup/plugin-typescript",
"version": "8.5.0",
"version": "9.0.1",
"publishConfig": {
"access": "public"
},
3 changes: 1 addition & 2 deletions packages/typescript/src/customTransformers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { BuilderProgram, CustomTransformers, Program, TypeChecker } from 'typescript';
import type { BuilderProgram, CustomTransformers, Program, TypeChecker } from 'typescript';

import type { CustomTransformerFactories, TransformerStage, TransformerFactory } from '../types';

/**
* Merges all received custom transformer definitions into a single CustomTransformers object
*/
2 changes: 1 addition & 1 deletion packages/typescript/src/moduleResolution.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
ModuleResolutionHost,
ResolvedModuleFull,
ResolvedProjectReference,
2 changes: 1 addition & 1 deletion packages/typescript/src/options/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as defaultTs from 'typescript';
import defaultTs from 'typescript';

import type { RollupTypescriptOptions, PartialCompilerOptions } from '../../types';
import { getTsLibPath } from '../tslib';
6 changes: 3 additions & 3 deletions packages/typescript/src/options/tsconfig.ts
Original file line number Diff line number Diff line change
@@ -2,12 +2,11 @@ import { readFileSync } from 'fs';
import { dirname, resolve } from 'path';

import { PluginContext } from 'rollup';
import {
import typescript from 'typescript';
import type {
Diagnostic,
ExtendedConfigCacheEntry,
MapLike,
ModuleKind,
ModuleResolutionKind,
ParsedCommandLine,
ProjectReference,
TypeAcquisition,
@@ -28,6 +27,7 @@ import {
} from './interfaces';
import { normalizeCompilerOptions, makePathsAbsolute } from './normalize';

const { ModuleKind, ModuleResolutionKind } = typescript;
export interface TypeScriptConfig {
autoSetSourceMap: boolean;
options: CompilerOptions;
3 changes: 2 additions & 1 deletion packages/typescript/src/preflight.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { PluginContext, RollupOptions } from 'rollup';
import { ModuleKind } from 'typescript';
import typescript from 'typescript';

import { TypeScriptConfig } from './options/tsconfig';
// import { resolveIdAsync } from './tslib';

const { ModuleKind } = typescript;
interface PreflightOptions {
config: TypeScriptConfig;
context: PluginContext;
5 changes: 4 additions & 1 deletion packages/typescript/src/tslib.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { fileURLToPath } from 'url';

import resolve, { SyncOpts } from 'resolve';

// const resolveIdAsync = (file: string, opts: AsyncOpts) =>
@@ -19,7 +21,8 @@ export const getTsLibPath = () => {
try {
// eslint-disable-next-line no-underscore-dangle
return resolveId(process.env.__TSLIB_TEST_PATH__ || 'tslib/tslib.es6.js', {
basedir: __dirname
// @ts-ignore import.meta.url is allowed because the Rollup plugin injects the correct module format
basedir: fileURLToPath(new URL('.', import.meta.url))
});
} catch (_) {
return null;
4 changes: 2 additions & 2 deletions packages/typescript/src/watchProgram.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { PluginContext } from 'rollup';
import { DiagnosticCategory } from 'typescript';

import typescript from 'typescript';
import type {
Diagnostic,
EmitAndSemanticDiagnosticsBuilderProgram,
@@ -17,6 +16,7 @@ import { DiagnosticsHost } from './diagnostics/host';
import { Resolver } from './moduleResolution';
import { mergeTransformers } from './customTransformers';

const { DiagnosticCategory } = typescript;
type BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram;

// @see https://github.com/microsoft/TypeScript/blob/master/src/compiler/diagnosticMessages.json
Loading