Skip to content

Commit 4b497e5

Browse files
committed
update babel for dojo; closes codesandbox#2108
1 parent 1eaa9ca commit 4b497e5

File tree

1 file changed

+11
-1
lines changed
  • packages/app/src/sandbox/eval/presets/dojo

1 file changed

+11
-1
lines changed

packages/app/src/sandbox/eval/presets/dojo/index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,17 @@ export default function initialize() {
4141
]);
4242

4343
preset.registerTranspiler(module => /\.jsx?$/.test(module.path), [
44-
{ transpiler: babelTranspiler },
44+
{
45+
transpiler: babelTranspiler,
46+
options: {
47+
isV7: true,
48+
config: {
49+
parserOpts: {
50+
plugins: ['objectRestSpread'],
51+
},
52+
},
53+
},
54+
},
4555
]);
4656

4757
preset.registerTranspiler(module => /\.json$/.test(module.path), [

0 commit comments

Comments
 (0)