Skip to content
Closed
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
],
"scripts": {
"clean": "lerna clean",
"start": "lerna exec --parallel -- npm run start",
"start": "lerna run dev --scope=playground --stream",
"test": "cd library && npm test",
"build": "npm run build:library && npm run build:webcomponent && npm run build:playground",
"build": "npm run build:watch & lerna run dev --scope=playground --stream",
"build:library": "cd library && npm run prepare",
"build:webcomponent": "cd web-component && npm run bundle",
"build:playground": "cd playground && npm run build",
Expand Down
29 changes: 22 additions & 7 deletions playground/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,33 @@ const nextConfig = {
compiler: {
styledComponents: true,
},
webpack: config => {
config.resolve.fallback = {
fs: false,
};


webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
path: false,
util: false,
buffer: false,
};
}
return config;
},


transpilePackages: [
'@asyncapi/parser',
'@asyncapi/avro-schema-parser',
'@stoplight/spectral-core',
'@stoplight/spectral-ref-resolver',
'@stoplight/json-ref-readers',
'avsc'
],

assetPrefix,
basePath,
eslint: {
ignoreDuringBuilds: true,
},
};

export default nextConfig;
6 changes: 4 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "playground",
"private": true,
"scripts": {
"build": "next build && touch out/.nojekyll",
"start": "next dev"
"dev": "next dev --webpack",
"dev:turbo": "next dev",
"build": "next build --webpack && touch out/.nojekyll",
"start": "next dev --webpack"
},
"dependencies": {
"@asyncapi/react-component": "file:../library",
Expand Down