Skip to content

Commit

Permalink
fix: do not bundle mime-types
Browse files Browse the repository at this point in the history
  • Loading branch information
Anidetrix committed May 4, 2020
1 parent 97cd849 commit e444f04
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 36 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"concat-with-sourcemaps": "^1.1.0",
"cssnano": "^4.1.10",
"icss-utils": "^4.1.1",
"mime-types": "^2.1.27",
"p-queue": "^6.4.0",
"postcss": "^7.0.29",
"postcss-load-config": "^2.1.0",
Expand Down Expand Up @@ -86,6 +87,7 @@
"autoprefixer": "^9.7.6",
"babel-jest": "^25.5.1",
"babel-plugin-transform-node-env-inline": "^0.4.3",
"builtin-modules": "^3.1.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-import-resolver-node": "^0.3.3",
Expand All @@ -100,13 +102,12 @@
"jest": "^25.5.4",
"less": "^3.11.1",
"lint-staged": "^10.2.2",
"mime-types": "^2.1.27",
"node-sass": "^4.14.0",
"postcss-custom-properties": "^9.1.1",
"prettier": "^2.0.5",
"rollup": "^2.7.6",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-dts": "^1.4.0",
"rollup-plugin-node-externals": "^2.1.6",
"rollup-plugin-terser": "^5.3.0",
"sass": "^1.26.5",
"semantic-release": "^17.0.7",
Expand Down
50 changes: 18 additions & 32 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { terser } from "rollup-plugin-terser";
import autoExternal from "rollup-plugin-auto-external";
import babel from "@rollup/plugin-babel";
import commonjs from "@rollup/plugin-commonjs";
import dts from "rollup-plugin-dts";
import externals from "rollup-plugin-node-externals";
import json from "@rollup/plugin-json";
import resolve from "@rollup/plugin-node-resolve";
import typescript from "@rollup/plugin-typescript";
Expand All @@ -20,7 +20,7 @@ export default [
{ format: "es", file: pkg.module },
],
plugins: [
autoExternal(),
externals({ deps: true }),
json(),
resolve({ preferBuiltins: true, extensions }),
commonjs(),
Expand Down

0 comments on commit e444f04

Please sign in to comment.