Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu committed Apr 27, 2021
1 parent 48e2582 commit 1411858
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 21 deletions.
126 changes: 105 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"@babel/preset-react": "^7.12.7",
"@babel/preset-typescript": "^7.13.0",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.2.0",
"babel-plugin-source-map-support": "^2.1.3",
"prop-types": "^15.7.2",
"react": "^17.0.1",
Expand Down
3 changes: 3 additions & 0 deletions src/transpiler/transpiler.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import Path from 'path';

import { rollup } from 'rollup';
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';

import { getStatsInDir } from '../utils';
import { TranspileFilesOptions } from '../types';

const ROOT_DIR = Path.resolve(__dirname, '../..');
const extensions = ['.js', '.jsx', '.cjs', '.tsx'];

/**
* Transpile files in a given directory (and sub directory if recursive option are passed) and write it to an output directory,
Expand Down

0 comments on commit 1411858

Please sign in to comment.