@live-codes/browser-compilers 0.7.5 → 0.8.0

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.5",
3
+ "version": "0.8.0",
4
4
  "description": "Compilers that run in the browser, for use in livecodes.io",
5
5
  "author": "Hatem Hosny",
6
6
  "license": "MIT",
@@ -50,6 +50,7 @@
50
50
  "@unocss/transformer-compile-class": "0.53.1",
51
51
  "@unocss/transformer-directives": "0.53.1",
52
52
  "@unocss/transformer-variant-group": "0.53.1",
53
+ "@vue/compiler-sfc": "3.3.4",
53
54
  "@webassemblyjs/wast-refmt": "1.11.6",
54
55
  "assemblyscript": "0.27.5",
55
56
  "autoprefixer": "10.4.14",
@@ -308,7 +308,7 @@ fs.copyFileSync(
308
308
  .then(() => {
309
309
  if (mod !== 'jest-dom.js') return;
310
310
  patch('dist/@testing-library/jest-dom.js', {
311
- 'expect.extend': 'window.jestLite?.core.expect.extend',
311
+ 'expect.extend': 'window.browserJest?.expect.extend',
312
312
  });
313
313
  });
314
314
  },
@@ -469,3 +469,11 @@ esbuild
469
469
  fs.unlinkSync(path.resolve('dist/assemblyscript/assemblyscript.patched.js'));
470
470
  });
471
471
  });
472
+
473
+ // @vue/compiler-sfc
474
+ esbuild.build({
475
+ ...baseOptions,
476
+ entryPoints: ['vendor_modules/imports/vue-compiler-sfc.js'],
477
+ outfile: 'dist/vue-compiler-sfc/vue-compiler-sfc.js',
478
+ globalName: 'VueCompilerSFC',
479
+ });
@@ -0,0 +1,3 @@
1
+ import * as VueCompilerSFC from '@vue/compiler-sfc';
2
+
3
+ export { VueCompilerSFC };