diff --git a/.npmignore b/.npmignore index df8d8f4d..05c3be8c 100644 --- a/.npmignore +++ b/.npmignore @@ -1,6 +1,8 @@ /doc /test /benchmark +/build +/tsconfig.json .github .vscode @@ -8,3 +10,6 @@ npm-debug.log .DS_Store Thumbs.db Desktop.ini + +.eslintignore +.eslintrc.yaml \ No newline at end of file diff --git a/src/core/env.ts b/src/core/env.ts index a9c7b192..52e3699a 100644 --- a/src/core/env.ts +++ b/src/core/env.ts @@ -37,11 +37,7 @@ else if (typeof document === 'undefined' && typeof self !== 'undefined') { // In worker env.worker = true; } -else if ( - (typeof process !== 'undefined' && typeof process.version === 'string') - || (typeof navigator === 'undefined' || typeof navigator.userAgent === 'undefined') - || (env.hasGlobalWindow && 'Deno' in window) -) { +else if (!env.hasGlobalWindow || 'Deno' in window) { // In node env.node = true; env.svgSupported = true;