Skip to content

Commit

Permalink
Remove rollup, simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed May 12, 2019
1 parent 26ed926 commit 3d671b3
Show file tree
Hide file tree
Showing 10 changed files with 172 additions and 1,984 deletions.
17 changes: 14 additions & 3 deletions .npmignore
@@ -1,3 +1,14 @@
/*
!/dist/**/*.js
!/props.js
.DS_Store
.prettierrc
.nyc_output
.travis.yml
coverage
coverage.lcov
benchmarks
docs
src
examples
babel.config.js
test
CONTRIBUTING.md
CODE_OF_CONDUCT.md
21 changes: 0 additions & 21 deletions .size-snapshot.json

This file was deleted.

11 changes: 10 additions & 1 deletion babel.config.js
@@ -1,7 +1,16 @@
module.exports = {
env: {
test: {
presets: [['@babel/preset-env', { loose: true }], '@babel/react'],
presets: [['@babel/env', { loose: true }], '@babel/react'],
plugins: ['@babel/transform-runtime'],
},
cjs: {
presets: [['@babel/env', { loose: true }]],
plugins: ['@babel/transform-runtime'],
},
esm: {
presets: [['@babel/env', { loose: true, modules: false }]],
plugins: [['@babel/transform-runtime', { useESModules: true }]],
},
},
}
2 changes: 1 addition & 1 deletion benchmarks/index.js
Expand Up @@ -4,7 +4,7 @@ const Benchmark = require('benchmark')
const libs = [
{
name: 'actual',
module: require('../dist/styled-system.cjs'),
module: require('../dist/index.cjs'),
},
{
name: 'v4',
Expand Down

0 comments on commit 3d671b3

Please sign in to comment.