Experimental port to Firebase hosting
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
const babel = require('babel-core');
|
||||
const unpkgRewrite = require('../unpkgRewrite');
|
||||
import babel from 'babel-core';
|
||||
|
||||
import unpkgRewrite from '../unpkgRewrite';
|
||||
|
||||
const testCases = [
|
||||
{
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user