Skip to content

Commit 3424ce1

Browse files
committed
build: remove custom config for rpts2
1 parent a2e4485 commit 3424ce1

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

tsdx.config.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,10 @@
1-
const rpts2 = require('rollup-plugin-typescript2');
21
const copy = require('rollup-plugin-copy');
32
const postcss = require('rollup-plugin-postcss');
43
const autoprefixer = require('autoprefixer');
54
const cssnano = require('cssnano');
65

76
module.exports = {
87
rollup(config, options) {
9-
config.plugins = config.plugins.map(plugin => {
10-
if (plugin && plugin.name === 'rpt2') {
11-
return rpts2({
12-
clean: true,
13-
objectHashIgnoreUnknownHack: true,
14-
tsconfig: options.tsconfig,
15-
tsconfigDefaults: {
16-
compilerOptions: {
17-
sourceMap: true,
18-
declaration: true,
19-
jsx: 'react',
20-
},
21-
},
22-
tsconfigOverride: {
23-
compilerOptions: {
24-
target: 'esnext',
25-
},
26-
},
27-
});
28-
}
29-
30-
return plugin;
31-
});
32-
338
config.plugins.push(
349
postcss({
3510
plugins: [

0 commit comments

Comments
 (0)