-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemented ImagePixelated component
- Loading branch information
1 parent
7d43cbd
commit e7ca87c
Showing
4 changed files
with
20 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,34 @@ | ||
import typescript from "rollup-plugin-typescript2"; | ||
import commonjs from "rollup-plugin-commonjs"; | ||
import external from "rollup-plugin-peer-deps-external"; | ||
import resolve from "rollup-plugin-node-resolve"; | ||
import typescript from "rollup-plugin-typescript2" | ||
import commonjs from "rollup-plugin-commonjs" | ||
import external from "rollup-plugin-peer-deps-external" | ||
import resolve from "rollup-plugin-node-resolve" | ||
|
||
import pkg from "./package.json"; | ||
import pkg from "./package.json" | ||
|
||
export default { | ||
input: "src/index.ts", | ||
output: [ | ||
{ | ||
file: pkg.main, | ||
format: "cjs", | ||
exports: "named", | ||
sourcemap: true, | ||
}, | ||
{ | ||
file: pkg.module, | ||
format: "es", | ||
exports: "named", | ||
sourcemap: true, | ||
}, | ||
exports: "named" | ||
} | ||
], | ||
plugins: [ | ||
external(), | ||
resolve(), | ||
typescript({ | ||
rollupCommonJSResolveHack: true, | ||
exclude: ["**/__tests__/**"], | ||
clean: true, | ||
clean: true | ||
}), | ||
commonjs({ | ||
include: ["node_modules/**"], | ||
namedExports: { | ||
"node_modules/react/react.js": [ | ||
"Children", | ||
"Component", | ||
"PropTypes", | ||
"createElement", | ||
], | ||
"node_modules/react-dom/index.js": ["render"], | ||
}, | ||
}), | ||
"node_modules/react/react.js": ["Children", "Component", "PropTypes", "createElement"], | ||
"node_modules/react-dom/index.js": ["render"] | ||
} | ||
}) | ||
], | ||
}; | ||
external: ["react", "react-dom"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters