Skip to content

Commit

Permalink
@babel/preset-env (#102)
Browse files Browse the repository at this point in the history
* Update createRollupConfig.ts

* Update package.json
  • Loading branch information
samdenty authored and jaredpalmer committed May 29, 2019
1 parent 779a7c3 commit 988cc1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@jaredpalmer/rollup-plugin-preserve-shebang": "^0.1.7",
"ansi-escapes": "^3.2.0",
"asyncro": "^3.0.0",
"@babel/preset-env": "^7.4.4",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-transform-rename-import": "^2.3.0",
Expand Down
1 change: 1 addition & 0 deletions src/createRollupConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const replacements = [{ original: 'lodash', replacement: 'lodash-es' }];
const babelOptions = (format: 'cjs' | 'es' | 'umd') => ({
exclude: /node_modules/,
extensions: [...DEFAULT_EXTENSIONS, 'ts', 'tsx'],
presets: ['@babel/preset-env'],
plugins: [
require.resolve('babel-plugin-annotate-pure-calls'),
require.resolve('babel-plugin-dev-expression'),
Expand Down

0 comments on commit 988cc1f

Please sign in to comment.