Skip to content

Commit

Permalink
build: remove custom config for rpts2
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurdenner committed Mar 25, 2020
1 parent a2e4485 commit 3424ce1
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions tsdx.config.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,10 @@
const rpts2 = require('rollup-plugin-typescript2');
const copy = require('rollup-plugin-copy');
const postcss = require('rollup-plugin-postcss');
const autoprefixer = require('autoprefixer');
const cssnano = require('cssnano');

module.exports = {
rollup(config, options) {
config.plugins = config.plugins.map(plugin => {
if (plugin && plugin.name === 'rpt2') {
return rpts2({
clean: true,
objectHashIgnoreUnknownHack: true,
tsconfig: options.tsconfig,
tsconfigDefaults: {
compilerOptions: {
sourceMap: true,
declaration: true,
jsx: 'react',
},
},
tsconfigOverride: {
compilerOptions: {
target: 'esnext',
},
},
});
}

return plugin;
});

config.plugins.push(
postcss({
plugins: [
Expand Down

1 comment on commit 3424ce1

@vercel
Copy link

@vercel vercel bot commented on 3424ce1 Mar 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.