🔧 Reconfigure packages
This commit is contained in:
parent
38bb833fd2
commit
87b097e9d8
97 changed files with 1113 additions and 882 deletions
|
@ -18,20 +18,23 @@ import {
|
|||
module
|
||||
} from "./package.json";
|
||||
|
||||
const output = [
|
||||
{
|
||||
file: main,
|
||||
format: "cjs",
|
||||
sourcemap: true
|
||||
}
|
||||
];
|
||||
if (typeof module !== "undefined")
|
||||
output.push({
|
||||
file: module,
|
||||
format: "es",
|
||||
sourcemap: true
|
||||
});
|
||||
|
||||
export default {
|
||||
input: "src/index.js",
|
||||
output: [
|
||||
{
|
||||
file: main,
|
||||
format: "cjs",
|
||||
sourcemap: true
|
||||
},
|
||||
{
|
||||
file: module,
|
||||
format: "es",
|
||||
sourcemap: true
|
||||
}
|
||||
],
|
||||
output,
|
||||
plugins: [
|
||||
peerDepsExternal(),
|
||||
resolve({ modulesOnly: true }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue