Skip to content

Commit f77f052

Browse files
committed
change js output directory
1 parent de53beb commit f77f052

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/js/rollup.config.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ import commonjs from "rollup-plugin-commonjs";
33
import replace from "rollup-plugin-replace";
44

55
export default {
6-
input: "src/index.js",
7-
output: {
8-
file: "../reactpy_router/bundle.js",
9-
format: "esm",
10-
},
11-
plugins: [
12-
resolve(),
13-
commonjs(),
14-
replace({
15-
"process.env.NODE_ENV": JSON.stringify("production"),
16-
}),
17-
],
18-
onwarn: function (warning) {
19-
if (warning.code === "THIS_IS_UNDEFINED") {
20-
// skip warning where `this` is undefined at the top level of a module
21-
return;
22-
}
23-
console.warn(warning.message);
24-
},
6+
input: "src/index.js",
7+
output: {
8+
file: "../reactpy_router/static/bundle.js",
9+
format: "esm",
10+
},
11+
plugins: [
12+
resolve(),
13+
commonjs(),
14+
replace({
15+
"process.env.NODE_ENV": JSON.stringify("production"),
16+
}),
17+
],
18+
onwarn: function (warning) {
19+
if (warning.code === "THIS_IS_UNDEFINED") {
20+
// skip warning where `this` is undefined at the top level of a module
21+
return;
22+
}
23+
console.warn(warning.message);
24+
},
2525
};

0 commit comments

Comments
 (0)