Skip to content

Commit 16933ff

Browse files
committed
fix rollup config
1 parent 930dfcb commit 16933ff

File tree

3 files changed

+15
-21
lines changed

3 files changed

+15
-21
lines changed

dist/index.esm.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,14 @@ function _defineProperty(obj, key, value) {
3333

3434
var isProduction = process.env.NODE_ENV === 'production';
3535
var prefix = 'Invariant failed';
36-
3736
function invariant(condition, message) {
38-
if (condition) {
39-
return;
40-
}
41-
42-
if (isProduction) {
43-
throw new Error(prefix);
44-
}
45-
46-
throw new Error(prefix + ": " + (message || ''));
37+
if (condition) {
38+
return;
39+
}
40+
if (isProduction) {
41+
throw new Error(prefix);
42+
}
43+
throw new Error(prefix + ": " + (message || ''));
4744
}
4845

4946
React.PureComponent.prototype.componentDidMount = function () {};

dist/index.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,14 @@ function _defineProperty(obj, key, value) {
3939

4040
var isProduction = process.env.NODE_ENV === 'production';
4141
var prefix = 'Invariant failed';
42-
4342
function invariant(condition, message) {
44-
if (condition) {
45-
return;
46-
}
47-
48-
if (isProduction) {
49-
throw new Error(prefix);
50-
}
51-
52-
throw new Error(prefix + ": " + (message || ''));
43+
if (condition) {
44+
return;
45+
}
46+
if (isProduction) {
47+
throw new Error(prefix);
48+
}
49+
throw new Error(prefix + ": " + (message || ''));
5350
}
5451

5552
React.PureComponent.prototype.componentDidMount = function () {};

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default [
2626
plugins: [
2727
resolve(),
2828
babel({
29-
exclude: 'node_modules/!**',
29+
exclude: 'node_modules/**/*',
3030
presets: [
3131
[
3232
'@babel/preset-env',

0 commit comments

Comments
 (0)