@@ -52,51 +52,3 @@ function handleExportedDeclaration(d, map) {
5252}
5353
5454module . exports = DEPRECATED_FEATURES ;
55-
56- // TODO: remove this, it is primarily just for testing if svelte is working...
57- function svelte ( infile , outfile ) {
58- console . log ( DEPRECATED_FEATURES ) ; // eslint-disable-line no-console
59- const babel = require ( 'babel-core' ) ; // eslint-disable-line node/no-extraneous-require
60-
61- let { code } = babel . transformFileSync ( infile , {
62- plugins : [
63- [
64- 'debug-macros' ,
65- {
66- debugTools : {
67- source : '@ember/debug' ,
68- assertPredicateIndex : 1 ,
69- isDebug : false ,
70- } ,
71- svelte : {
72- 'ember-source' : '3.3.0' ,
73- } ,
74- flags : [
75- {
76- source : '@glimmer/env' ,
77- flags : { DEBUG : false } ,
78- } ,
79- {
80- name : 'ember-source' ,
81- source : '@ember/deprecated-features' ,
82- flags : DEPRECATED_FEATURES ,
83- } ,
84- {
85- source : '@ember/canary-features' ,
86- flags : {
87- EMBER_METAL_TRACKED_PROPERTIES : true ,
88- } ,
89- } ,
90- ] ,
91- } ,
92- ] ,
93- ] ,
94- } ) ;
95-
96- fs . writeFileSync ( outfile , code ) ;
97- }
98-
99- if ( process . env . SVELTE_TEST ) {
100- svelte ( 'dist/es/@ember/-internals/metal/lib/property_get.js' , 'property_get.svelte.js' ) ;
101- svelte ( 'dist/es/@ember/-internals/metal/lib/property_set.js' , 'property_set.svelte.js' ) ;
102- }
0 commit comments