This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// index.js | |
import { OneNumber } from './deps/class-tree-shaking.js'; | |
// class-tree-shaking.js | |
class Math { | |
static multiply(a, b) { | |
return a * b; | |
} | |
get sum() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// index.js | |
import { foo } from './module-tree-shaking.js'; | |
foo(); | |
// module-tree-shaking.js | |
export const foo = function foo() { | |
bar(); | |
}; | |
export const bar = function bar() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ./dist/0.js | |
webpackJsonp([0],[ | |
/* 0 */, | |
/* 1 */ | |
/***/ function(module, exports) { | |
module.exports = function() { | |
console.log('in module a'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// works in both v1 and v2 | |
{ | |
test: /\.less$/, | |
loader: "style-loader!css-loader!less-loader" | |
} | |
// works in v2 | |
{ | |
test: /\.less$/, | |
use: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) | |
/******/ return installedModules[moduleId].exports; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function AsimovReporter(runner) { | |
var passes = 0, | |
failures = 0; | |
runner.on('pass', function(test) { | |
passes++; | |
console.log('##asimov-deploy[test="%s" pass="true"', test.fullTitle()); | |
}); | |
runner.on('fail', function(test, err) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Bacon = require('baconjs'), | |
doT = require('dot'), | |
createElement = require('virtual-dom/create-element'), | |
diff = require('virtual-dom/diff'), | |
patch = require('virtual-dom/patch'), | |
VNode = require('virtual-dom/vnode/vnode'), | |
VText = require('virtual-dom/vnode/vtext') | |
var convertHTML = require('html-to-vdom')({ | |
VNode: VNode, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Bacon = require('baconjs'), | |
doT = require('dot'), | |
createElement = require('virtual-dom/create-element'), | |
diff = require('virtual-dom/diff'), | |
patch = require('virtual-dom/patch'), | |
VNode = require('virtual-dom/vnode/vnode'), | |
VText = require('virtual-dom/vnode/vtext') | |
var convertHTML = require('html-to-vdom')({ | |
VNode: VNode, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var Bacon = require('baconjs'), | |
doT = require('dot'), | |
createElement = require('virtual-dom/create-element'), | |
diff = require('virtual-dom/diff'), | |
patch = require('virtual-dom/patch'), | |
VNode = require('virtual-dom/vnode/vnode'), | |
VText = require('virtual-dom/vnode/vtext') | |
var convertHTML = require('html-to-vdom')({ VNode: VNode, VText: VText }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['can', 'localCache'], function(can, localCache) { | |
'use strict'; | |
describe('storeLocal()', function() { | |
var sandbox; | |
beforeEach(function() { | |
// create sandbox environment for mocking about | |
sandbox = sinon.sandbox.create(); | |
}); |