Skip to content

Commit

Permalink
Merge pull request #17523 from emberjs/rwjblue-patch-1
Browse files Browse the repository at this point in the history
Remove unused svelte spike code...
  • Loading branch information
locks authored Jan 27, 2019
2 parents 97e9ff1 + 2861674 commit e8cb16f
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions broccoli/deprecated-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,51 +52,3 @@ function handleExportedDeclaration(d, map) {
}

module.exports = DEPRECATED_FEATURES;

// TODO: remove this, it is primarily just for testing if svelte is working...
function svelte(infile, outfile) {
console.log(DEPRECATED_FEATURES); // eslint-disable-line no-console
const babel = require('babel-core'); // eslint-disable-line node/no-extraneous-require

let { code } = babel.transformFileSync(infile, {
plugins: [
[
'debug-macros',
{
debugTools: {
source: '@ember/debug',
assertPredicateIndex: 1,
isDebug: false,
},
svelte: {
'ember-source': '3.3.0',
},
flags: [
{
source: '@glimmer/env',
flags: { DEBUG: false },
},
{
name: 'ember-source',
source: '@ember/deprecated-features',
flags: DEPRECATED_FEATURES,
},
{
source: '@ember/canary-features',
flags: {
EMBER_METAL_TRACKED_PROPERTIES: true,
},
},
],
},
],
],
});

fs.writeFileSync(outfile, code);
}

if (process.env.SVELTE_TEST) {
svelte('dist/es/@ember/-internals/metal/lib/property_get.js', 'property_get.svelte.js');
svelte('dist/es/@ember/-internals/metal/lib/property_set.js', 'property_set.svelte.js');
}

0 comments on commit e8cb16f

Please sign in to comment.