Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 55 additions & 55 deletions package-lock.json

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

10 changes: 9 additions & 1 deletion webpack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const packageAliases = {
'pane-registry': path.resolve('./node_modules/pane-registry'),
'$rdf': path.resolve('./node_modules/rdflib'),
'SolidLogic': path.resolve('./node_modules/solid-logic'),
'buffer$': path.resolve('./node_modules/buffer/index.js'),
// Force a single copy of @awesome.me/webawesome to avoid duplicate
// custom-element registrations (wa-popup, etc.) from the hoisted install.
'@awesome.me/webawesome': path.resolve('./node_modules/@awesome.me/webawesome'),
Expand All @@ -42,6 +43,7 @@ const workspaceAliases = {
// See packageAliases: no prefix alias for 'solid-ui/components' — the
// shim files would shadow the correctly-externalized leaf entries.
'UI$': path.resolve('../solid-ui/dist/index.cjs.js'),
'buffer$': path.resolve('./node_modules/buffer/index.js'),
'@awesome.me/webawesome': path.resolve('../solid-ui/node_modules/@awesome.me/webawesome'),
}

Expand Down Expand Up @@ -96,6 +98,10 @@ function createCommonConfig (resolutionMode) {
test: /\.ttl$/, // Target text files
type: 'asset/source', // Load the file's content as a string
},
{
test: /pdf\.worker\.min\.mjs$/,
type: 'asset/resource',
},
{
test: /\.(mjs|js|ts)$/,
exclude: (modulePath) => {
Expand Down Expand Up @@ -145,7 +151,9 @@ function createCommonConfig (resolutionMode) {
new MiniCssExtractPlugin({
filename: 'mash.css'
}),
new NodePolyfillPlugin(),
new NodePolyfillPlugin({
excludeAliases: ['buffer', 'Buffer']
}),
new CopyPlugin({
patterns: [
{ from: 'static', to: '.' }
Expand Down
Loading