Skip to content

Commit

Permalink
Attempts to solve webpack specified import problem
Browse files Browse the repository at this point in the history
Suspect it's a fight between webpack being fussier and
microbundle not adding qualified imports:

developit/microbundle#1023
  • Loading branch information
sandtreader committed Jan 30, 2023
1 parent 2e016da commit 4a79b46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@
"name": "@sandtreader/rafiki",
"author": "Paul Clark <[email protected]>",
"description": "Rafiki React Administration Framework",
"keywords": ["react", "administration", "portal", "dashboard"],
"license": "MIT",
"version": "0.1.7",
"version": "0.1.9g",
"type": "module",
"source": "src/rafiki.ts",
"main": "dist/rafiki.cjs",
"umpkg": "dist/rafiki.umd.js",
"module": "dist/rafiki.module.js",
"exports": {
"types": "./dist/rafiki.d.ts",
"require": "./dist/rafiki.cjs",
"default": "./dist/rafiki.modern.js"
},
"main": "./dist/rafiki.cjs",
"module": "./dist/rafiki.module.js",
"umpkg": "./dist/rafiki.umd.js",
"types": "dist/rafiki.d.ts",
"files": [
"dist/rafiki.*",
"dist/lib/*.ts"
],
"dependencies": {
"peerDependencies": {
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@mui/material": "^5.10.15",
Expand All @@ -32,8 +34,8 @@
"lint": "prettier src -c",
"format": "prettier src --write",
"eject": "react-scripts eject",
"build:lib": "rm -r dist; microbundle --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react",
"watch:lib": "microbundle --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react watch",
"build:lib": "rm -r dist; microbundle",
"watch:lib": "microbundle watch",
"publish:lib": "npm run build:lib && npm publish --access public"
},
"eslintConfig": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "esnext",
"lib": [
"dom",
"dom.iterable",
Expand Down

0 comments on commit 4a79b46

Please sign in to comment.