You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature/issue 1268 import map and attribute polyfill configuration (#1269)
* import map polyfill config flag
* import attributes polyfill config option
* import attributes demo
* develop test cases for import maps and attributes for development
* import attributes polyfill config serve test cases
* polyfills configuration error test cases
* bundle polyfilled import attributes for the browser
* polyfills configuration docs and import attributes call outs
* misc refactoring
* add acorn-import-attributes as a CLI dependency
* refine pre-intercepting logic to include all JS resource types
* remove demo code
* more robust bundling and serve test case
reject(`Error: greenwood.config.js polyfills.importAttributes must be an array of types; ['css', 'json']. Passed value was typeof: ${typeofimportAttributes}`);
266
+
}
267
+
}
268
+
}
242
269
}else{
243
270
// SPA should _not_ prerender unless if user has specified prerender should be true
describe('Custom Configuration with a bad value for Polyfills w/ Import Attributes',function(){
41
+
it('should throw an error that polyfills.importAttributes must be an array of types; [\'css\', \'json\']',function(){
42
+
try{
43
+
runner.setup(outputPath);
44
+
runner.runCommand(cliPath,'build');
45
+
}catch(err){
46
+
expect(err).to.contain('Error: greenwood.config.js polyfill.importAttributes must be a an array of types; [\'css\', \'json\']. Passed value was typeof: object');
0 commit comments