- a
- b
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
"use strict"; | |
/*globals describe it */ | |
const path = require("path"); | |
const webpack = require("../lib/webpack"); | |
const base = path.join(__dirname, "fixtures", "errors"); | |
describe("Errors", () => { |
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
//There are absolutely no keys or methods on that object that you don't put there! | |
let dict = Object.create(null) | |
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
const env = process.env.NODE_ENV || "development" | |
const routes = { | |
production: { | |
base: "https://www.appointmentme.com" | |
}, | |
development: { | |
base: "http://www.localhost.com" | |
} |
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
const { environment } = require('@rails/webpacker') | |
const cssLoaderOptions = { | |
sourceMap: true, | |
importLoaders: 2, | |
modules: false | |
}; | |
environment.loaders.get('css').use.find(el => el.loader === "css-loader").options = cssLoaderOptions; | |
environment.loaders | |
.get("sass") |
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
it('should not autoinstall if PARCEL_AUTOINSTALL is set to false', async function() { | |
const inputDir = path.resolve( | |
__dirname, | |
'integration', | |
'dont-autoinstall-if-env-var-is-set-to-false' | |
); | |
try { | |
let a = await bundle(path.resolve(inputDir, './index.js')); | |
await run(a); | |
} catch (e) { |
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
"use strict"; | |
/* globals describe it */ | |
const path = require("path"); | |
const MemoryFs = require("memory-fs"); | |
const webpack = require("../"); | |
const fs = require("fs"); | |
const rimraf = require("rimraf"); | |
const createCompiler = config => { |
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
"use strict"; | |
/* globals describe it */ | |
const path = require("path"); | |
const MemoryFs = require("memory-fs"); | |
const webpack = require("../"); | |
const fs = require('fs'); | |
const createCompiler = config => { | |
const compiler = webpack(config); |
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
module.exports = LRUCache | |
// This will be a proper iterable 'Map' in engines that support it, | |
// or a fakey-fake PseudoMap in older versions. | |
var Map = require('pseudomap') | |
var util = require('util') | |
// A linked list to keep track of recently-used-ness | |
var Yallist = require('yallist') |