Skip to content

Commit

Permalink
fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Feb 23, 2023
1 parent ca0e80d commit c0b4bf8
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/rollup-plugin/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,13 @@ const prefix = "\0wq-bundle:",
"@mui/material": {
name: "muiMaterial",
},
"mapbox-gl": {
name: "MapboxGL",
},
"react-mapbox-gl": {
name: "ReactMapboxGl",
"react-map-gl": {
name: "ReactMapGL",
hasDefault: true,
},
"@mapbox/mapbox-gl-draw": {
name: "MapboxDraw",
},
"react-mapbox-gl-draw": {
name: "DrawControl",
},
"@wq/app": {
name: "app",
},
Expand All @@ -64,7 +58,7 @@ const prefix = "\0wq-bundle:",
},
};

module.exports = function wq() {
export default function wq() {
return {
name: "@wq/rollup-plugin",
resolveId(id) {
Expand All @@ -87,7 +81,7 @@ module.exports = function wq() {
}
},
};
};
}

function createVirtualModule(id) {
const { name, hasDefault } = modules[id];
Expand Down

0 comments on commit c0b4bf8

Please sign in to comment.