Skip to content

Commit

Permalink
fix: add auto external
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas committed Sep 17, 2017
1 parent f24042b commit 4ac5c58
Show file tree
Hide file tree
Showing 5 changed files with 357 additions and 1,526 deletions.
3 changes: 2 additions & 1 deletion config/prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ import cjs from 'rollup-plugin-commonjs'
import uglify from 'rollup-plugin-uglify'
import globals from 'rollup-plugin-node-globals'
import nodeResolve from 'rollup-plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external';

export default {
entry: 'src/index.js',
format: 'iife',
external: ['react'],
exports: 'named',
moduleName: 'reactMetro',
dest: 'dist/react-metro.js',
plugins: [
autoExternal(),
babel({
babelrc: false,
exclude: 'node_modules/**',
Expand Down
2 changes: 1 addition & 1 deletion dist/react-metro.js

Large diffs are not rendered by default.

Loading

0 comments on commit 4ac5c58

Please sign in to comment.