Experimental port to Firebase hosting

This commit is contained in:
Michael Jackson
2019-01-05 16:50:05 -08:00
parent e4d6df255e
commit 31e7d3865a
300 changed files with 129300 additions and 5817 deletions

View File

@ -1,5 +1,6 @@
const babel = require('babel-core');
const unpkgRewrite = require('../unpkgRewrite');
import babel from 'babel-core';
import unpkgRewrite from '../unpkgRewrite';
const testCases = [
{

View File

@ -1,7 +1,7 @@
const URL = require('whatwg-url');
const warning = require('warning');
import URL from 'whatwg-url';
import warning from 'warning';
const origin = require('../serverConfig').origin;
import { origin } from '../config';
const bareIdentifierFormat = /^((?:@[^/]+\/)?[^/]+)(\/.*)?$/;
@ -47,7 +47,7 @@ function rewriteValue(/* StringLiteral */ node, dependencies) {
}
}
function unpkgRewrite(dependencies = {}) {
export default function unpkgRewrite(dependencies = {}) {
return {
manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push(
@ -88,5 +88,3 @@ function unpkgRewrite(dependencies = {}) {
}
};
}
module.exports = unpkgRewrite;