Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ The `dist` directory contains the following build artifacts:

* `imsc.debug.js`: Non-minified UMD build.
* `imsc.min.js`: Minified UMD build.
* **deprecated** `imsc.all.debug.js` and `imsc.all.min.js`: Identical to
`imsc.debug.js` and `imsc.min.js`, only for compatibility with imscJS 1.x and
subject to removal in a future release.
* `main/`: ES modules and TypeScript type declarations, used when the library is imported as an NPM package.

## Releases
Expand Down
16 changes: 16 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import nodeResolve from "@rollup/plugin-node-resolve";
import terser from "@rollup/plugin-terser";
import nodePolyfill from "rollup-plugin-polyfill-node";

const DEPRECATED_BUNDLE_BANNER = "/*! DEPRECATED: this bundle is subject to removal in a future release; use imsc.debug.js or imsc.min.js instead. */";

export default [
{
input: "dist/main/main.js",
Expand All @@ -27,6 +29,20 @@ export default [
name: "imsc",
sourcemap: true,
plugins: [terser()],
}, {
/* DEPRECATED: imscJS 1.x bundle names, retained for backward compatibility and subject to removal in a future release */
file: "dist/imsc.all.debug.js",
format: "umd",
name: "imsc",
sourcemap: true,
banner: DEPRECATED_BUNDLE_BANNER,
}, {
file: "dist/imsc.all.min.js",
format: "umd",
name: "imsc",
sourcemap: true,
banner: DEPRECATED_BUNDLE_BANNER,
plugins: [terser()],
}],
},
];
Loading