Skip to content

Commit

Permalink
build(rollup): updated paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Anidetrix committed Jan 16, 2022
1 parent e418f52 commit fb7edcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const extensions = [".ts", ".mjs", ".js", ".cjs", ".json"];
const config = [
// Bundle
{
input: "src/index.ts",
input: "./src/index.ts",
output: [
{ format: "cjs", file: pkg.exports.require, exports: "default" },
{ format: "es", file: pkg.exports.import, exports: "default" },
Expand All @@ -37,8 +37,8 @@ const config = [
},
// Injector
{
input: "runtime/inject-css.js",
output: { format: "es", file: "dist/runtime/inject-css.js" },
input: "./runtime/inject-css.js",
output: { format: "es", file: "./dist/runtime/inject-css.js" },
plugins: [
externals({ deps: true }),
json(),
Expand All @@ -54,7 +54,7 @@ const config = [
},
// Declaration
{
input: "src/index.ts",
input: "./src/index.ts",
output: { format: "es", file: pkg.types },
plugins: [
externals({ deps: true }),
Expand Down

0 comments on commit fb7edcf

Please sign in to comment.