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 11import tsPlugin from 'rollup-plugin-typescript2'
22import { getBabelOutputPlugin } from '@rollup/plugin-babel'
33
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+ // })
1616
17- console . log ( outputMap )
17+ // console.log(outputMap)
1818
1919export default {
2020 input : 'src/index.ts' ,
21- output : outputMap ,
21+ output : {
22+ file : 'publish/dist/x-crawl.cjs.js' ,
23+ format : 'cjs' ,
24+ compact : true
25+ } ,
2226 treeshake : {
2327 tryCatchDeoptimization : false ,
2428 unknownGlobalSideEffects : false
You can’t perform that action at this time.
0 commit comments