Skip to content

Commit 952cdb8

Browse files
committedApr 1, 2022
build: 使用defineConfig定义rollup
1 parent 9ed7016 commit 952cdb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎rollup.config.js ‎rollup.config.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const typescript = require('@rollup/plugin-typescript');
22
const json = require('@rollup/plugin-json');
33
const replace = require('@rollup/plugin-replace');
44
import {version} from './packages/any-touch/package.json';
5-
6-
export default {
5+
import { defineConfig } from 'rollup';
6+
export default defineConfig({
77
input: './packages/any-touch/src/index.ts',
88

99
plugins: [
@@ -24,4 +24,4 @@ export default {
2424
file: `./packages/any-touch/dist/any-touch.umd.js`,
2525
sourcemap: false,
2626
}]
27-
};
27+
});

0 commit comments

Comments
 (0)
Please sign in to comment.