Commit 59afcc90 by Wee

chore: upgrade to 1.0.1. Export LiveRoute as default.

parent d46573f8
export LiveRoute from './LiveRoute'
export default from './LiveRoute'
{
"name": "react-live-route",
"version": "1.0.0",
"version": "1.0.1",
"description": "A living route for react-router-v4",
"repository": "fi3ework/react-live-route",
"license": "MIT",
......
import babel from "rollup-plugin-babel";
import uglify from "rollup-plugin-uglify";
import replace from "rollup-plugin-replace";
import commonjs from "rollup-plugin-commonjs";
import resolve from "rollup-plugin-node-resolve";
const config = {
input: "modules/index.js",
output: {
name: "ReactRouter",
globals: {
react: "React"
}
},
external: ["react"],
plugins: [
babel({
exclude: "node_modules/**",
plugins: ["external-helpers"]
}),
resolve(),
commonjs({
include: /node_modules/
}),
replace({
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV)
})
]
};
if (process.env.NODE_ENV === "production") {
config.plugins.push(uglify());
}
export default config;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment