Skip to content

Commit

Permalink
fix(core): fixed rollup/plugin-terser causing build to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
DuCanhGH committed Dec 19, 2022
1 parent 3fffb33 commit f9ae953
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/next-pwa/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
import terser from "@rollup/plugin-terser";
import typescript from "@rollup/plugin-typescript";
import { defineConfig } from "rollup";
import { fileURLToPath } from "url";

const __filename = fileURLToPath(import.meta.url);
global.__filename = __filename;

const commonConfig = defineConfig({
watch: {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-pwa/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "tsconfig/base.json",
"extends": "tsconfig/base",
"include": ["globals.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules", "dist"]
}
5 changes: 5 additions & 0 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@
"license": "MIT",
"publishConfig": {
"access": "public"
},
"typesVersions": {
"*": {
"*": ["src/*/tsconfig.json"]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
Expand Down

0 comments on commit f9ae953

Please sign in to comment.