File tree Expand file tree Collapse file tree 3 files changed +22
-14
lines changed Expand file tree Collapse file tree 3 files changed +22
-14
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = require ( './dist/x-crawl.cjs.js' )
Original file line number Diff line number Diff line change
1
+ import xCrawl from './index.js'
2
+
3
+ export default xCrawl
Original file line number Diff line number Diff line change 1
1
import tsPlugin from 'rollup-plugin-typescript2'
2
2
import { getBabelOutputPlugin } from '@rollup/plugin-babel'
3
3
4
- const outputMap = [
5
- {
6
- file : 'publish/dist/index.mjs' ,
7
- format : 'es'
8
- } ,
9
- {
10
- file : 'publish/dist/index.js' ,
11
- format : 'cjs'
12
- }
13
- ] . map ( ( item ) => {
14
- return { ...item , compact : true }
15
- } )
4
+ // const outputMap = [
5
+ // {
6
+ // file: 'publish/dist/index.mjs',
7
+ // format: 'es'
8
+ // },
9
+ // {
10
+ // file: 'publish/dist/index.js',
11
+ // format: 'cjs'
12
+ // }
13
+ // ].map((item) => {
14
+ // return { ...item, compact: true }
15
+ // })
16
16
17
- console . log ( outputMap )
17
+ // console.log(outputMap)
18
18
19
19
export default {
20
20
input : 'src/index.ts' ,
21
- output : outputMap ,
21
+ output : {
22
+ file : 'publish/dist/x-crawl.cjs.js' ,
23
+ format : 'cjs' ,
24
+ compact : true
25
+ } ,
22
26
treeshake : {
23
27
tryCatchDeoptimization : false ,
24
28
unknownGlobalSideEffects : false
You can’t perform that action at this time.
0 commit comments