Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
morewings committed Nov 30, 2023
1 parent f06e8e0 commit e804786
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions rollup.config.cjs
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
const postcss = require("rollup-plugin-postcss");
const autoprefixer = require("autoprefixer");
const postcssPresetEnv = require("postcss-preset-env");
const typescript = require("@rollup/plugin-typescript");
const external = require("@yelo/rollup-node-external");
const { dts } = require("rollup-plugin-dts");
const postcss = require('rollup-plugin-postcss');
const autoprefixer = require('autoprefixer');
const postcssPresetEnv = require('postcss-preset-env');
const typescript = require('@rollup/plugin-typescript');
const external = require('@yelo/rollup-node-external');
const {dts} = require('rollup-plugin-dts');

module.exports = [
{
input: "./src/lib/index.ts",
input: './src/lib/index.ts',
output: [
{
format: "cjs",
exports: "named",
format: 'cjs',
exports: 'named',
sourcemap: true,
file: "./dist/index.cjs.js",
file: './dist/index.cjs.js',
},
{
format: "esm",
exports: "named",
format: 'esm',
exports: 'named',
sourcemap: true,
file: "./dist/index.esm.js",
file: './dist/index.esm.js',
},
],
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
external: external(),
plugins: [
postcss({
extract: "style.css",
extract: 'style.css',
inline: false,
modules: true,
plugins: [
postcssPresetEnv({
browsers: [">0.2%", "not dead", "not op_mini all"],
browsers: ['>0.2%', 'not dead', 'not op_mini all'],
stage: 3,
}),
autoprefixer(),
],
}),
typescript({
tsconfig: "tsconfig.build.json",
tsconfig: 'tsconfig.build.json',
}),
],
},
{
input: "./src/lib/index.ts",
output: [{ file: "dist/types.d.ts", format: "es" }],
input: './src/lib/index.ts',
output: [{file: 'dist/types.d.ts', format: 'es'}],
plugins: [dts()],
},
];

0 comments on commit e804786

Please sign in to comment.