@live-codes/browser-compilers 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-codes/browser-compilers",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Compilers that run in the browser, for use in livecodes.io",
5
5
  "author": "Hatem Hosny",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "@esbuild-plugins/node-modules-polyfill": "0.1.4",
28
28
  "@fullhuman/postcss-purgecss": "5.0.0",
29
29
  "@mdx-js/mdx": "2.3.0",
30
- "@prettier/plugin-pug": "2.4.0",
30
+ "@prettier/plugin-pug": "2.5.1",
31
31
  "@tailwindcss/aspect-ratio": "0.4.2",
32
32
  "@tailwindcss/forms": "0.5.3",
33
33
  "@tailwindcss/line-clamp": "0.4.4",
@@ -145,13 +145,19 @@ patch('node_modules/browserslist/index.js', {
145
145
  });
146
146
  });
147
147
 
148
- // @prettier/plugin-pug
149
- esbuild.buildSync({
150
- ...baseOptions,
151
- entryPoints: ['node_modules/@prettier/plugin-pug/dist/index.js'],
152
- outfile: 'dist/prettier/parser-pug.js',
153
- globalName: 'pluginPug',
154
- });
148
+ patch('node_modules/@prettier/plugin-pug/dist/printer.js', {
149
+ 'const node_util_1 = require("node:util");':
150
+ 'const node_util_1 = {types: {isNativeError: () => false}};',
151
+ }).then(() =>
152
+ // @prettier/plugin-pug
153
+ esbuild.build({
154
+ ...baseOptions,
155
+ entryPoints: ['node_modules/@prettier/plugin-pug/dist/index.js'],
156
+ outfile: 'dist/prettier/parser-pug.js',
157
+ globalName: 'pluginPug',
158
+ plugins: nodePolyfills,
159
+ }),
160
+ );
155
161
 
156
162
  // svelte
157
163
  esbuild.buildSync({