Skip to content

Commit

Permalink
Use generatedCode option in rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
petamoriken committed Sep 23, 2021
1 parent b370c30 commit b37194a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,21 @@ const homepage = process.env.npm_package_homepage;

const banner = `/*! ${ name } ${ version } | ${ license } License - ${ homepage } */\n`;

export default {
/** @type {import("rollup").RollupOptions} */
const options = {
input: "src/index.mjs",
output: [{
file: "browser/float16.js",
format: "iife",
name: "float16",
generatedCode: "es2015",
banner,
}, {
file: "browser/float16.mjs",
format: "es",
generatedCode: "es2015",
banner,
}],
};

export default options;

0 comments on commit b37194a

Please sign in to comment.