File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://swc.rs/schema.json" ,
3
+ "jsc" : {
4
+ "minify" : {
5
+ "compress" : true ,
6
+ "mangle" : true
7
+ },
8
+ "target" : " es2017"
9
+ }
10
+ }
Original file line number Diff line number Diff line change 1
1
import resolve from '@rollup/plugin-node-resolve' ;
2
- import { resolve as pathResolve } from 'node:path' ;
3
2
import { defineConfig } from 'rollup' ;
4
3
import swc from 'unplugin-swc' ;
5
4
@@ -18,8 +17,7 @@ export default defineConfig([
18
17
swc . rollup ( {
19
18
minify : true ,
20
19
jsc : {
21
- target : 'esnext' ,
22
- baseUrl : pathResolve ( './' ) ,
20
+ baseUrl : import . meta. dirname ,
23
21
paths : {
24
22
'@/*' : [ './src/*' ] ,
25
23
} ,
Original file line number Diff line number Diff line change 1
1
import { Anatolo } from './anatolo/anatolo' ;
2
2
import * as Utils from './utils/main' ;
3
+ import FloatBtn from './components/float-btn' ;
3
4
4
5
( window as any ) . Anatolo = Anatolo ;
5
6
( window as any ) . Utils = Utils ;
6
7
7
- import FloatBtn from './components/float-btn' ;
8
8
new FloatBtn ( ) ;
You can’t perform that action at this time.
0 commit comments